Click here to Skip to main content
15,888,401 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Checking validity of a URL Pin
Mehdi Gholam11-Oct-11 3:50
Mehdi Gholam11-Oct-11 3:50 
GeneralRe: Checking validity of a URL Pin
PIEBALDconsult11-Oct-11 4:31
mvePIEBALDconsult11-Oct-11 4:31 
QuestionRead from excel file and download Pin
Member 76985969-Oct-11 22:07
Member 76985969-Oct-11 22:07 
AnswerRe: Read from excel file and download Pin
Dave Kreskowiak10-Oct-11 1:21
mveDave Kreskowiak10-Oct-11 1:21 
GeneralRe: Read from excel file and download Pin
Member 769859611-Oct-11 18:21
Member 769859611-Oct-11 18:21 
QuestionCssSpriteGenerator - help with configuration Pin
IdanShechter5-Oct-11 0:34
IdanShechter5-Oct-11 0:34 
AnswerRe: CssSpriteGenerator - help with configuration Pin
Richard MacCutchan10-Oct-11 4:20
mveRichard MacCutchan10-Oct-11 4:20 
QuestionObscure .net Part 1 : Threads Pin
Mehdi Gholam3-Oct-11 21:06
Mehdi Gholam3-Oct-11 21:06 
Preface : In these series of question I will be shining a light on the more obscure parts of the .net framework, which I have used or found interesting in the hope of sparking a discussion and receiving your thoughts on the subject.

Part 1 : Threads

There are a the following methods found on the Thread object
Thread.SetData<br />
Thread.GetData<br />
Thread.GetNamedDataSlot


With these methods you can store data on a thread in a "NamedSlot" kind of like a key value pair, which will travel around with the thread and can be accessed by making the GetData call.

I have found them indispensable for implementing transaction processor within my applications which store a TransactionID on the thread and rollback or commit that ID when everything is done.

Kudos to .net team for implementing these methods.

Have you used these methods before? Your thoughts and comments please.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.

AnswerRe: Obscure .net Part 1 : Threads PinPopular
Pete O'Hanlon4-Oct-11 3:57
mvePete O'Hanlon4-Oct-11 3:57 
GeneralRe: Obscure .net Part 1 : Threads Pin
Mehdi Gholam4-Oct-11 4:36
Mehdi Gholam4-Oct-11 4:36 
GeneralRe: Obscure .net Part 1 : Threads Pin
Pete O'Hanlon4-Oct-11 4:45
mvePete O'Hanlon4-Oct-11 4:45 
GeneralRe: Obscure .net Part 1 : Threads Pin
Mehdi Gholam4-Oct-11 4:52
Mehdi Gholam4-Oct-11 4:52 
AnswerRe: Obscure .net Part 1 : Threads Pin
Luc Pattyn4-Oct-11 5:06
sitebuilderLuc Pattyn4-Oct-11 5:06 
GeneralRe: Obscure .net Part 1 : Threads Pin
Mehdi Gholam4-Oct-11 5:19
Mehdi Gholam4-Oct-11 5:19 
GeneralRe: Obscure .net Part 1 : Threads Pin
Luc Pattyn4-Oct-11 5:28
sitebuilderLuc Pattyn4-Oct-11 5:28 
GeneralRe: Obscure .net Part 1 : Threads Pin
Mehdi Gholam4-Oct-11 5:36
Mehdi Gholam4-Oct-11 5:36 
AnswerRe: Obscure .net Part 1 : Threads Pin
jschell4-Oct-11 10:45
jschell4-Oct-11 10:45 
GeneralRe: Obscure .net Part 1 : Threads Pin
Mehdi Gholam4-Oct-11 18:25
Mehdi Gholam4-Oct-11 18:25 
GeneralRe: Obscure .net Part 1 : Threads Pin
jschell5-Oct-11 8:58
jschell5-Oct-11 8:58 
QuestionI want to upload a file on my web page with httpwebreqest Pin
pobre122-Oct-11 7:03
pobre122-Oct-11 7:03 
AnswerRe: I want to upload a file on my web page with httpwebreqest Pin
Richard MacCutchan3-Oct-11 3:27
mveRichard MacCutchan3-Oct-11 3:27 
QuestionI want to resize dialog thanx Pin
pobre121-Oct-11 10:22
pobre121-Oct-11 10:22 
AnswerRe: I want to resize dialog thanx Pin
Simon Bang Terkildsen1-Oct-11 12:53
Simon Bang Terkildsen1-Oct-11 12:53 
AnswerRe: I want to resize dialog thanx Pin
Richard MacCutchan1-Oct-11 21:20
mveRichard MacCutchan1-Oct-11 21:20 
AnswerRe: I want to resize dialog thanx Pin
Perić Željko6-Oct-11 1:22
professionalPerić Željko6-Oct-11 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.