src\System\Attribute.CoreCLR.cs (11)
460MemberTypes.Property => InternalGetCustomAttributes((PropertyInfo)element, attributeType, inherit),
461MemberTypes.Event => InternalGetCustomAttributes((EventInfo)element, attributeType, inherit),
477MemberTypes.Property => InternalGetCustomAttributes((PropertyInfo)element, typeof(Attribute), inherit),
478MemberTypes.Event => InternalGetCustomAttributes((EventInfo)element, typeof(Attribute), inherit),
499MemberTypes.Property => InternalIsDefined((PropertyInfo)element, attributeType, inherit),
500MemberTypes.Event => InternalIsDefined((EventInfo)element, attributeType, inherit),
549if (member.MemberType == MemberTypes.Method && inherit)
563if (member.MemberType == MemberTypes.Method && inherit)
588case MemberTypes.Method: // We need to climb up the member hierarchy
591case MemberTypes.Constructor:
594case MemberTypes.Property:
src\System\RuntimeType.CoreCLR.cs (27)
1801RuntimeMethodHandle.GetName(methodHandle), MemberTypes.Constructor | MemberTypes.Method,
2147if (memberInfo.MemberType != MemberTypes.TypeInfo &&
2148memberInfo.MemberType != MemberTypes.NestedType)
3020public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr)
3034if ((type & MemberTypes.Method) != 0)
3037if (type == MemberTypes.Method)
3043if ((type & MemberTypes.Constructor) != 0)
3046if (type == MemberTypes.Constructor)
3052if ((type & MemberTypes.Property) != 0)
3055if (type == MemberTypes.Property)
3061if ((type & MemberTypes.Event) != 0)
3064if (type == MemberTypes.Event)
3070if ((type & MemberTypes.Field) != 0)
3073if (type == MemberTypes.Field)
3079if ((type & (MemberTypes.NestedType | MemberTypes.TypeInfo)) != 0)
3082if (type == MemberTypes.NestedType || type == MemberTypes.TypeInfo)
3087MemberInfo[] compressMembers = (type == (MemberTypes.Method | MemberTypes.Constructor)) ?
3111MemberTypes.Method => GetMethodWithSameMetadataDefinitionAs(runtimeType, member),
3112MemberTypes.Constructor => GetConstructorWithSameMetadataDefinitionAs(runtimeType, member),
3113MemberTypes.Property => GetPropertyWithSameMetadataDefinitionAs(runtimeType, member),
3114MemberTypes.Field => GetFieldWithSameMetadataDefinitionAs(runtimeType, member),
3115MemberTypes.Event => GetEventWithSameMetadataDefinitionAs(runtimeType, member),
3116MemberTypes.NestedType => GetNestedTypeWithSameMetadataDefinitionAs(runtimeType, member),