TypedReference Structure (System)
Posted by jpluimers on 2011/08/22
Somehow this landed on my research list: TypedReference Structure (System) (together with __arglist, __makeref, __reftype and __refvalue)
Probably because of two reasons:
- it is the .NET equivalent of C-style varargs (for instance also supported by Java, C++, python and other languags) for variadic functions
- it can do fast things with value references without first boxing/unboxing them
A few interesting links:
- CLR type system notes by Joel Pobar
- Pointers undocumentd by Wesner Moise
- About cruel lambdas closures typedreferences cs0610 and other things you shouldn’t do by Bart de Smet
- UnCommon C# keywords a look by Abhishek Sur
- ref return -and ref locals by Eric Lippert
- Stackoverflow questions on TypedReference
–jeroen






Leave a comment