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