Skip to content

Tag Archives: CSharp-Indexers & Properties

Prerequisite: Properties in C# Indexers allow instances of a class or struct to be indexed just like arrays. By using indexers class will behave like… Read More
Properties in C# are named members that use access modifiers to set and retrieve values of fields declared in a secured manner. Properties are used… Read More
Prerequisite: Properties in C# Properties are the special type of class members that provides a flexible mechanism to read, write, or compute the value of… Read More
Prerequisite: Indexers in C# Like functions, Indexers can also be overloaded. In C#, we can have multiple indexers in a single class. To overload an… Read More
Prerequisite: Indexers in C# The multi-dimensional indexer is almost similar to multidimensional arrays. For the efficient content-based retrieval of data, multidimensional indexers are used. To… Read More
Prerequisite: Properties in C# An indexer allows an instance of a class or struct to be indexed as an array. If the user will define… Read More
Before going on properties lets have a look at why the concept of properties came into C#? The is because of two reasons:  If the… Read More