Tag Info

New answers tagged


I figured it out, I need to use Item indexer, but item index starts from 0, not 1: If you write a class in C# and give it an indexer, the compiler creates a public property named Item for you. This is a parameterized property, meaning that it takes an argument like a method call. The indexer syntax is just a shorthand for calling the Item property. See ...

Top 50 recent answers are included