R
Robert Zurer
I have two interfaces one inherits from the other
public interface IEmployee
{
string FirstName{get; set;}
string LastName{get; set;}
}
public interface IHRMSEmployee : IEmployee
{
string SSNum{get; set;}
}
PropertyInfo propInfo = typeof(IHRMSEmployee)GetProperty("LastName");
returns null.
PropertyInfo propInfo = typeof(IEmployee)GetProperty("LastName");
returns a value.
Why is this? Using classes, I can get the inherited property this way>
Thanks
Robert Zurer
public interface IEmployee
{
string FirstName{get; set;}
string LastName{get; set;}
}
public interface IHRMSEmployee : IEmployee
{
string SSNum{get; set;}
}
PropertyInfo propInfo = typeof(IHRMSEmployee)GetProperty("LastName");
returns null.
PropertyInfo propInfo = typeof(IEmployee)GetProperty("LastName");
returns a value.
Why is this? Using classes, I can get the inherited property this way>
Thanks
Robert Zurer