L
Lee
public class ClassA
{
[MyCoolAttribute]
private string _FieldName;
public string FieldName
{
get { return _FieldName; }
}
}
public class ClassB: ClassA
{
// [MyCoolAttribute]
// Must be explicity typed in attribute or implicit in
// the base class?
private string _FieldName;
public string FieldName
{
get { return _FieldName; }
}
}
If ClassA implments a custom attribute on one of it's members, do
derived classes automatically get that attribute or must it be
explicitly added?
Thank you,
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
{
[MyCoolAttribute]
private string _FieldName;
public string FieldName
{
get { return _FieldName; }
}
}
public class ClassB: ClassA
{
// [MyCoolAttribute]
// Must be explicity typed in attribute or implicit in
// the base class?
private string _FieldName;
public string FieldName
{
get { return _FieldName; }
}
}
If ClassA implments a custom attribute on one of it's members, do
derived classes automatically get that attribute or must it be
explicitly added?
Thank you,
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."