Guest User

Guest User

  • Tech Writer
  • 357
  • 120.8k

Method explanation

Mar 28 2012 9:29 AM
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)