1
Answer

Method explanation

S

S

12y
1.3k
1
Hi

Im having trouble understanding the following code:-

public new ViewStateProviderBase this[string name]
{
        get { return base[name] as ViewStateProviderBase; }
}

Please could I get an explanation of each part, especially the this after the method name and the [string name].

Ive not come across a method wrote this way, how is it invoked?

Thanks
Steven
Answers (1)