Practical Implementation of Indexer in C#

Before studying this article, there is one pre-requisite you should do. You should learn Properties in C#. What is Indexer in C# ? Indexer is an extended version of Properties in C#. It is an array of properties. Things to remember before using Indexer Remove all the private variables within class and take a single variable which act as property. There is no name for Indexer unlike properties in C#.…

View More Practical Implementation of Indexer in C#

Practical Implementation of Properties in C#

Before implementing the concept of Properties in C# language, we must be aware of the fact that every variable is by default Private in that class. So what basically Properties in C# is? What is Properties in C# ? Properties is just an approach to access the variable (by default private) of one class into another class without breaking the concept of data hiding. Suppose¬†we have opened a account in…

View More Practical Implementation of Properties in C#