示例#1
0
 public HasIndexPropertyAttribute GetHasIndexPropertyAttribute()
 {
     object[] attributes = InterfaceType.GetCustomAttributes(typeof(HasIndexPropertyAttribute), false);
     if (attributes.Length > 0)
     {
         return(attributes[0] as HasIndexPropertyAttribute);
     }
     else
     {
         return(null);
     }
 }
示例#2
0
 public EnumeratorAttribute GetEnumeratorAttribute()
 {
     object[] attributes = InterfaceType.GetCustomAttributes(typeof(EnumeratorAttribute), false);
     if (attributes.Length > 0)
     {
         return(attributes[0] as EnumeratorAttribute);
     }
     else
     {
         return(null);
     }
 }