Hmmm...
That's interesting. I'd not thought of that.
I'll give it a try.
On 9/6/06, Marc Brooks <[EMAIL PROTECTED]> wrote:
> public class BaseClass{
> public string Serialize(){
> //This will not work
> return Serialization.GetSerializedXml<typeof(this)>(this);
> }
> }
public class BaseClass<T>{
public string Serialize(){
return Serialization.GetSerializedXml<T>(this);
}
}
public DerivedClass : BaseClass<DerivedClass>
{
// stuff
}
--
"We do not have the luxury of making that risky assumption that people
will not be affected by the potential change. I know this can be
frustrating for you as it is for us. Thanks for your understanding in
this matter.." --Some misguided soul at Microsoft
Marc C. Brooks
http://musingmarc.blogspot.com
===================================
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com