Properties and Access Attributes in C#

Properties in C#

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 combination of a variable and a method – it can’t take any parameters, but you are able to process the …

Properties in C# 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). We can also create “self-describing” components using attributes. In this tutorial we will see how we can create and attach …

Attributes in C# Read More »

Scroll to Top