calling the super class

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 .....;
}
}
 
A

Anthony Jones

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?
 
M

Marc

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.
 
A

Anthony Jones

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top