Beispiel #1
0
 protected virtual bool LookupIsNameScope()
 {
     return(UnderlyingType != null && typeof(INameScope).GetTypeInfo().IsAssignableFrom(UnderlyingType.GetTypeInfo()));
 }
Beispiel #2
0
        public bool CanAssignTo(XamlType type)
        {
            var otherUnderlyingType = type.UnderlyingType.GetTypeInfo();

            return(otherUnderlyingType.IsAssignableFrom(UnderlyingType.GetTypeInfo()));
        }
Beispiel #3
0
 protected virtual bool LookupIsMarkupExtension()
 {
     return(UnderlyingType != null && typeof(MarkupExtension).GetTypeInfo().IsAssignableFrom(UnderlyingType.GetTypeInfo()));
 }
Beispiel #4
0
 T GetCustomAttribute <T>(bool inherit = true)
     where T : Attribute
 {
     return(UnderlyingType.GetTypeInfo().GetCustomAttribute <T>(inherit));
 }