By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

calling the super class

P: n/a
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 .....;
}
}
Aug 26 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Marc" <m.********@removethischello.nlwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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?

--
Anthony Jones - MVP ASP/ASP.NET
Aug 26 '08 #2

P: n/a

"Anthony Jones" <An*@yadayadayada.comschreef

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.

Aug 27 '08 #3

P: n/a
"Marc" <no*****@chello.nlwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>
"Anthony Jones" <An*@yadayadayada.comschreef

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

--
Anthony Jones - MVP ASP/ASP.NET
Aug 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.