I’m going through someone else’s code and I saw this statement:
public CustomClassName this [ string varName]
Please excuse the newbness of this question, but the square brackets threw me off.
Is this a method or constructor?
How does the “this” variable work in this case?
It’s called an indexer. MSDN page.