Can anyone explain the below code can any one give some real time explanation with below code snippets
public interface roman
{
roman this[string name] { get; }
}
public class notempty : roman
{
public string Color{ get; set; }
public roman this[string name]
{
get { return new notempty() { Color= "Value1" }; }
}
}
1 Answer