Indexer
- An indexer allows an object to be indexed like an array. When you define an indexer for a class,
- This class behaves like a virtual array. You can then access the instance of this class using the array access operator ([ ]).
- An indexer provides array-like syntax. It allows a type to be accessed the same way as an array.
- Properties such as indexers often access a backing store. We often accept an int parameter and access a backing array Property
- An indexer is a member that enables an object to be indexed in the same way as an array.
UNSAFE:
- C# allows using pointer variables in a function of code block when it is marked by the unsafe modifier.
- The unsafe code or the unmanaged code is a code block that uses a pointer variable.
No comments:
Post a Comment