-
Notifications
You must be signed in to change notification settings - Fork 1
Anonymous Types
Mario Gutierrez edited this page Jan 8, 2017
·
4 revisions
- Anonymous types override
ToString()
,GetHashCode()
, andEquals()
to
perform value-based equality checking. - The
==
operator compares by reference though. - Properties of an anonymous type are read-only.
Example:
var anon = new { Title = "Hello", Author = "Unknown" };
- Abstract Classes
- Access Modifiers
- Anonymous Methods
- Anonymous Types
- Arrays
- Attributes
- Console I/O
- Constructors
- Const Fields
- Delegates
- Enums
- Exceptions
- Extension Methods
- File IO
- Generics
- Interfaces
- Iterators
- LINQ
- Main
- Null Operators
- Parameters
- Polymorphism
- Virtual Functions
- Reflection
- Serialization
- Strings
- Value Types
- "Base" Keyword
- "Is" and "As"
- "Sealed" Keyword
- nameof expression