protected virtual bool LookupIsNameScope() { return(UnderlyingType != null && typeof(INameScope).GetTypeInfo().IsAssignableFrom(UnderlyingType.GetTypeInfo())); }
public bool CanAssignTo(XamlType type) { var otherUnderlyingType = type.UnderlyingType.GetTypeInfo(); return(otherUnderlyingType.IsAssignableFrom(UnderlyingType.GetTypeInfo())); }
protected virtual bool LookupIsMarkupExtension() { return(UnderlyingType != null && typeof(MarkupExtension).GetTypeInfo().IsAssignableFrom(UnderlyingType.GetTypeInfo())); }
T GetCustomAttribute <T>(bool inherit = true) where T : Attribute { return(UnderlyingType.GetTypeInfo().GetCustomAttribute <T>(inherit)); }