calling the super class

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

How would you explicitly call a method of a 'super' class in C#? What do I
put at the dots to just call the GetHierarchicalView of XmlDataSource?


public class XmlDataSourceMarc : XmlDataSource
{
protected override HierarchicalDataSourceView GetHierarchicalView(string
viewPath)
{
return .....;
}
}
 
Marc said:
How would you explicitly call a method of a 'super' class in C#? What do I
put at the dots to just call the GetHierarchicalView of XmlDataSource?


public class XmlDataSourceMarc : XmlDataSource
{
protected override HierarchicalDataSourceView GetHierarchicalView(string
viewPath)
{
return .....;
}
}

return base.GetHierarchicalView(viewPath);

The IDE even puts it in their for you.

Have you considered reading some of the documentation?
 
return base.GetHierarchicalView(viewPath);

Thank you. That's another one: in Delphi it's inherited in Java it's super,
in C# it's base.
The IDE even puts it in their for you.

Well, mine did not...Visual Studio Express Edition?
Have you considered reading some of the documentation?

Sorry, I am reading, but for some questions google for example gives very
irrelevant entries if you don't know what keyword to look for. Thanks for
the hint.
 
Marc said:
Thank you. That's another one: in Delphi it's inherited in Java it's super,
in C# it's base.


Well, mine did not...Visual Studio Express Edition?


Sorry, I am reading, but for some questions google for example gives very
irrelevant entries if you don't know what keyword to look for. Thanks for
the hint.

Don't google at this level its too general

See:-

http://msdn.microsoft.com/en-gb/library/hfw7t1ce.aspx

Have a rummage through the Keywords and operators reference.

Then read a few programming guides relevant to the stuff you are doing.
 
Back
Top