tmyklebust

Stories kicked by tmyklebust

Behind the scenes of the C# yield keyword(startbigthinksmall.wordpress.com)

submitted by lcorneliussenlcorneliussen(490) 3 years, 11 months ago

Yield is not a CLR feature, it's just about the C# compiler. This post explains how this works. read more...

1 comment |category: |Views: 408

tags: another

How to wrap the ASP.NET session state(startbigthinksmall.wordpress.com)

submitted by lcorneliussenlcorneliussen(490) 4 years ago

A handy C# code snippet for accessing ASP.net session state data. Exceptions are handled, usage is intuitive. read more...

1 comment |category: |Views: 426

tags: another

A C# Operator I would like to see.(objectreference.net)

submitted by Vort3XVort3X(1335) 4 years ago

You could argue there are too many operators in C# as it is; however, I feel having an acute knowledge of the available operators is like knowing CTRL + B will bold the selected text in most word processing software. To put it simply, it hurts no-one, whilst providing shortcuts to advanced users... read more...

add a comment |category: |Views: 14

tags: another

Nice way to store data on a single tread (Ambient Context Pattern)(startbigthinksmall.wordpress.com)

submitted by tmyklebusttmyklebust(25) 4 years ago

Lars writes about how to store contextual data in a nice way. His approach uses the using statement to have a value set only in a certain scope. He also provides the full source for his implementation as a downloadable zip-file. read more...

add a comment |category: |Views: 28

tags: another