How does reflection tell me when a property is hiding an inherited member with the 'new' keyword?
Posted
by TheDeeno
on Stack Overflow
See other posts from Stack Overflow
or by TheDeeno
Published on 2008-11-13T21:18:57Z
Indexed on
2010/04/25
4:23 UTC
Read the original article
Hit count: 351
So if I have:
public class ChildClass : BaseClass
{
public new virtual string TempProperty { get; set; }
}
public class BaseClass
{
public virtual string TempProperty { get; set; }
}
How can I use reflection to see that ChildClass is hiding the Base implementation of TempProperty?
I'd like the answer to be agnostic between c# and vb.net
© Stack Overflow or respective owner