In java, I can write code like this.
public class Map1 extends MapInfo {
{
// I can access fields of the super class
}
}
Currently writing this code in sharpdevelop the code completion didnt show up.
public class Map1 : MapInfo {
{
// It gives error.
// Invalid token '{' in class, struct, or interface member declaration (CS1519) - C:\Users\sriharshach....st\Map.cs:10,3
}
}
Is there a way to write the same code in c#? (i.e, not in the constructor)
Thanks
in C# land it would be
edit: Had too many curly braces and fixed up comment