Anonymous Types in Visual Studio 2008
Loading...
8,262
Loading...
Uploader Comments (davidmbush)
Top Comments
-
Oh no, curly braces in Visual Basic!
see all
All Comments (10)
-
I think anonymous types use a compiler determined variable. This variable is not known until the code is compiled so how can you access it? If you can't access it, you can't change it, thereby making anonymous types read-only.
-
The F# types they are based on are immutable. In F# this is by design as it fits with the functional programming paradigm. In C# and VB and other imperative languages, this seems like an arbitrary restriction.
-
Thank you for this tutorial. Great lesson.
Loading...
WTH is with the read-only ppts in C#? Are they just being cruel for cruelties sake or is there some weird reasoning behind that.
mindprism 2 years ago
ppts?
davidmbush 2 years ago
Yes, sorry, Properties.
Enjoy your videos.
mindprism 2 years ago
Nothing wrong with read only properties in C#
davidmbush 2 years ago
No, I mean why are they read only for anonymous types? Is there a reason for that?
mindprism 2 years ago
Oh, right.
No idea.
davidmbush 2 years ago