Properties allow you to control the accessibility of class variables and are the optional way to access variables from the outside in an object oriented programming language like C#. A property is much like a …
Read More »Properties and Access Attributes in C#
Restrictions of properties in C#
Properties look, act and feel like fields, but they aren’t true fields and certain restrictions apply to them: • You can’t initialize a property of a struct through a set accessor unlike field being initialized …
Read More »Attributes in C#
Attributes are a new kind of declarative information. We can use attributes to define both design-level information (such as help file, URL for documentation) and run-time information (such as associating XML field with class field). …
Read More »