9 types derived from MemberInfo
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
9public abstract class EventInfo : MemberInfo
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (1)
10public abstract partial class FieldInfo : MemberInfo
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
13public abstract partial class MethodBase : MemberInfo
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (1)
10public abstract class PropertyInfo : MemberInfo
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
15public abstract partial class Type : MemberInfo, IReflect
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
11public abstract partial class Type : MemberInfo, IReflect
src\System\Reflection\FieldInfo.CoreCLR.cs (1)
6public abstract partial class FieldInfo : MemberInfo
src\System\Reflection\MethodBase.CoreCLR.cs (1)
12public abstract partial class MethodBase : MemberInfo
src\System\Type.CoreCLR.cs (1)
12public abstract partial class Type : MemberInfo, IReflect
1051 references to MemberInfo
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
130MemberInfo = compilation.GetBestTypeByMetadataName(typeof(System.Reflection.MemberInfo));
dotnet-svcutil-lib (100)
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (2)
13private Dictionary<string, MemberInfo> _nameTable = new Dictionary<string, MemberInfo>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (4)
725internal Type LoadMember(object obj, MemberInfo memberInfo) 772internal Type LoadMember(MemberInfo memberInfo) 810internal Type LoadMemberAddress(MemberInfo memberInfo) 851internal void StoreMember(MemberInfo memberInfo)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
183private MemberInfo _memberInfo; 197internal MemberInfo MemberInfo 950private MemberInfo _memberInfo; 951private MemberInfo _checkSpecifiedMemberInfo; 988internal MemberInfo MemberInfo 994internal MemberInfo CheckSpecifiedMemberInfo
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (11)
142internal MemberInfo[] GetMemberInfos() 147MemberInfo[] members = Type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 148MemberInfo[] fieldsAndProps = new MemberInfo[members.Length]; 170internal FieldModel GetFieldModel(MemberInfo memberInfo) 185private void CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type) 252private MemberInfo _memberInfo; 253private MemberInfo _checkSpecifiedMemberInfo; 276internal FieldModel(MemberInfo memberInfo, Type fieldType, TypeDesc fieldTypeDesc) 347internal MemberInfo MemberInfo 351internal MemberInfo CheckSpecifiedMemberInfo
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
184private SoapAttributes GetAttributes(MemberInfo memberInfo) 416foreach (MemberInfo memberInfo in model.GetMemberInfos())
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
36public readonly MemberInfo MemberInfo; 40public SourceInfo(string source, string arg, MemberInfo memberInfo, Type type, CodeGenerator ilg)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (18)
715internal TypeDesc GetTypeDesc(Type type, MemberInfo source) 720internal TypeDesc GetTypeDesc(Type type, MemberInfo source, bool directReference) 725internal TypeDesc GetTypeDesc(Type type, MemberInfo source, bool directReference, bool throwOnError) 783private TypeDesc ImportTypeDesc(Type type, MemberInfo memberInfo, bool directReference) 1095internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1120MemberInfo memberInfo = memberMapping.MemberInfo; 1148internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1155private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1175Dictionary<string, MemberInfo> replaceList = null; 1176MemberInfo replacedInfo = null; 1177foreach (KeyValuePair<string, MemberInfo> pair in memberInfos) 1183replaceList = new Dictionary<string, MemberInfo>(); 1192foreach (KeyValuePair<string, MemberInfo> pair in replaceList) 1198MemberInfo mi; 1209private static bool ShouldBeReplaced(MemberInfo memberInfoToBeReplaced, Type derivedType, out MemberInfo replacedInfo) 1287foreach (MemberInfo member in type.GetMember("System.Collections.Generic.IEnumerable<*", BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic)) 1354MemberInfo[] defaultMembers = type.GetDefaultMembers();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (2)
19private MemberInfo _memberInfo; 48internal MemberInfo MemberInfo
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (4)
251private XmlAttributes GetAttributes(MemberInfo memberInfo) 848foreach (MemberInfo memberInfo in model.GetMemberInfos()) 1460MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1471infos = new MemberInfo[] { info };
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (3)
23internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 573MemberInfo memInfo = memberInfos[source.Substring(3)];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (3)
3909typeof(MemberInfo).FullName, string.Empty /*typeof(MemberTypes).FullName*/)); 3995MemberInfo[] memberInfos = type.GetMember(memberName); 3998MemberInfo memberInfo = memberInfos[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2473internal SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo memberInfo, TypeDesc typeDesc, CodeGenerator ilg)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (2)
932MemberInfo[] memberInfos; 947MemberInfo member = memberInfos[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (2)
686internal Type LoadMember(MemberInfo memberInfo) 731internal void StoreMember(MemberInfo memberInfo)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2278private static bool IsMemberVisibleInSerializationModule(MemberInfo member)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSurrogateCaller.cs (1)
49internal static object GetCustomDataToExport(IDataContractSurrogate surrogate, MemberInfo memberInfo, Type dataContractType)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataMember.cs (7)
45internal DataMember(MemberInfo memberInfo) 71internal MemberInfo MemberInfo 185private MemberInfo _memberInfo; 194internal CriticalHelper(MemberInfo memberInfo) 215internal MemberInfo MemberInfo 313MemberInfo memberInfo = MemberInfo; 338MemberInfo memberInfo = MemberInfo;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (2)
271MemberInfo[] memberInfos; 276MemberInfo member = memberInfos[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\IDataContractSurrogate.cs (1)
17object GetCustomDataToExport(MemberInfo memberInfo, Type dataContractType);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
460private bool TryWritePrimitive(Type type, LocalBuilder value, MemberInfo memberInfo, LocalBuilder arrayItemIndex, LocalBuilder ns, LocalBuilder name, int nameIndex)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (2)
94public static MemberInfo[] GetMember(this Type type, string name, BindingFlags bindingAttr) 98public static MemberInfo[] GetMembers(this Type type, BindingFlags bindingAttr)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (4)
38else if (attrProvider is MemberInfo) 40this.MemberInfo = (MemberInfo)attrProvider; 56internal MemberInfo MemberInfo { get; private set; } 113public static implicit operator CustomAttributeProvider(MemberInfo attrProvider)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessagePartDescription.cs (2)
23private MemberInfo _memberInfo; 130public MemberInfo MemberInfo
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (5)
985MemberInfo[] publicMembers = attributeType.GetMembers(BindingFlags.Instance | BindingFlags.Public); 986Array.Sort<MemberInfo>(publicMembers, 987delegate (MemberInfo a, MemberInfo b) 994foreach (MemberInfo member in publicMembers)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (4)
1291List<MemberInfo> contractMembers = new List<MemberInfo>(); 1310foreach (MemberInfo memberInfo in baseType.GetTypeInfo().DeclaredMembers) 1356MemberInfo memberInfo = contractMembers[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
817MemberInfo additionalAttributesProvider = null; 825static internal XmlReflectionMember GetXmlReflectionMember(XmlName memberName, XmlName elementName, string ns, Type type, MemberInfo additionalAttributesProvider, bool isMultiple, bool isWrapped)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
568private MemberInfo[] _members; 582_members = new MemberInfo[description.Body.Parts.Count + description.Properties.Count + description.Headers.Count]; 598MemberInfo memberInfo = _members[index]; 612MemberInfo memberInfo = _members[index];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
285MemberInfo member = bodyPart.MemberInfo; 342MemberInfo member = bodyPart.MemberInfo;
Microsoft.AspNetCore.Components.Forms (5)
FieldIdentifier.cs (3)
19private static readonly ConcurrentDictionary<(Type ModelType, MemberInfo Member), Func<object, object>> _fieldAccessors = new(); 155ConcurrentDictionary<(Type ModelType, MemberInfo Member), Func<object, object>>? cache = null) 187static Func<object, object> CreateAccessor((Type model, MemberInfo member) arg)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
24private static readonly ConcurrentDictionary<MemberInfo, CapturedValueFormatter> s_capturedValueFormatterCache = new(); 236var member = memberExpression.Member;
Microsoft.AspNetCore.Components.Forms.Tests (1)
FieldIdentifierTest.cs (1)
146var cache = new ConcurrentDictionary<(Type ModelType, MemberInfo FieldName), Func<object, object>>();
Microsoft.AspNetCore.Components.Web (2)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
24private static readonly ConcurrentDictionary<MemberInfo, CapturedValueFormatter> s_capturedValueFormatterCache = new(); 236var member = memberExpression.Member;
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
239private static bool HasStackTraceHiddenAttribute(MemberInfo memberInfo)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
239private static bool HasStackTraceHiddenAttribute(MemberInfo memberInfo)
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2376private static MemberInfo GetMemberInfo<T>(Expression<T> expr)
Microsoft.AspNetCore.Mvc.Core (6)
ApplicationModels\ActionModel.cs (1)
153MemberInfo ICommonModel.MemberInfo => ActionMethod;
ApplicationModels\ControllerModel.cs (1)
98MemberInfo ICommonModel.MemberInfo => ControllerType;
ApplicationModels\ICommonModel.cs (1)
21MemberInfo MemberInfo { get; }
ApplicationModels\ParameterModel.cs (1)
57MemberInfo ICommonModel.MemberInfo => ParameterInfo.Member;
ApplicationModels\PropertyModel.cs (1)
48MemberInfo ICommonModel.MemberInfo => PropertyInfo;
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
126modelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(MemberInfo)));
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageHandlerModel.cs (1)
91MemberInfo ICommonModel.MemberInfo => MethodInfo;
ApplicationModels\PageParameterModel.cs (1)
49MemberInfo ICommonModel.MemberInfo => ParameterInfo.Member;
ApplicationModels\PagePropertyModel.cs (1)
48MemberInfo ICommonModel.MemberInfo => PropertyInfo;
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
220Assert.Equal(typeof(MemberInfo), excludeFilter.Type);
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
CachedExpressionCompiler.cs (4)
34private static readonly ConcurrentDictionary<MemberInfo, Func<TModel, object>> _simpleMemberAccessCache = 35new ConcurrentDictionary<MemberInfo, Func<TModel, object>>(); 40private static readonly ConcurrentDictionary<MemberInfo, Func<object, TResult>> _constMemberAccessCache = 41new ConcurrentDictionary<MemberInfo, Func<object, TResult>>();
MemberExpressionCacheKey.cs (6)
18public MemberExpressionCacheKey(Type modelType, MemberInfo[] members) 30var members = new List<MemberInfo>(); 31foreach (var member in this) 43public MemberInfo[] Members { get; } 49private readonly MemberInfo[] _members; 61public MemberInfo Current { get; private set; }
MemberExpressionCacheKeyComparer.cs (1)
42foreach (var member in obj)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
MemberExpressionCacheKeyTest.cs (2)
76private static IList<MemberInfo> GetMembers(MemberExpressionCacheKey key) 78var members = new List<MemberInfo>();
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
239private static bool HasStackTraceHiddenAttribute(MemberInfo memberInfo)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
239private static bool HasStackTraceHiddenAttribute(MemberInfo memberInfo)
Microsoft.Build (6)
Evaluation\Expander.cs (6)
5551MemberInfo[] foundMembers = _receiverType.FindMembers( 5629private static IComparer<MemberInfo>? s_comparerLongBeforeDouble; 5631internal static IComparer<MemberInfo> IntrinsicFunctionOverloadMethodComparer => LongBeforeDoubleComparer; 5633private static IComparer<MemberInfo> LongBeforeDoubleComparer => s_comparerLongBeforeDouble ??= Comparer<MemberInfo>.Create((key0, key1) => SelectTypeOfFirstParameter(key0).CompareTo(SelectTypeOfFirstParameter(key1))); 5637private static TypeCode SelectTypeOfFirstParameter(MemberInfo member)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
267foreach (var member in displayClass.GetMembers()) 306foreach (var member in anon.GetMembers())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\AnonymousTypesSymbolTests.cs (1)
1081foreach (var symbol in type.GetMembers(name))
Symbols\Metadata\PE\LoadingMethods.cs (5)
94var varC108 = localC107.GetMembers("C108").Single(); 98var sameName1 = csharpC1.GetMembers("SameName").Single(); 99var sameName2 = csharpC1.GetMembers("sameName").Single(); 706var outerInterfaceMethod = outerInterface.GetMembers().Single(); 716var innerInterfaceMethod = innerInterface.GetMembers().Single();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
212private static MemberInfo GetMember(System.Reflection.MemberInfo member)
Microsoft.CodeAnalysis.Scripting (13)
Hosting\CommonMemberFilter.cs (2)
56public override bool Include(MemberInfo member) 61private bool IsHiddenMember(MemberInfo info)
Hosting\MemberFilter.cs (1)
15public virtual bool Include(MemberInfo member) => true;
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (3)
331var members = new List<MemberInfo>(); 355foreach (var member in members) 815MemberInfo member = ResolveMember(obj, memberName, callableOnly);
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (7)
47internal static DebuggerDisplayAttribute GetApplicableDebuggerDisplayAttribute(MemberInfo member) 134internal static MemberInfo ResolveMember(object obj, string memberName, bool callableOnly) 179IEnumerable<MemberInfo> members; 186members = ((IEnumerable<MemberInfo>)type.DeclaredFields).Concat(type.DeclaredProperties); 189MemberInfo candidate = null; 190foreach (var member in members) 239internal static object GetMemberValue(MemberInfo member, object obj, out Exception exception)
Microsoft.CodeAnalysis.UnitTests (1)
Collections\DebuggerAttributes.cs (1)
71public static DebuggerBrowsableState? GetDebuggerBrowsableState(MemberInfo info)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Remote\ServiceDescriptorTests.cs (3)
55private static Dictionary<Type, MemberInfo> GetAllParameterTypesOfRemoteApis() 68var types = new Dictionary<Type, MemberInfo>(); 70void AddTypeRecursive(Type type, MemberInfo declaringMember)
Microsoft.CSharp (26)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (19)
23public static bool IsEquivalentTo(this MemberInfo mi1, MemberInfo mi2) 139private static bool IsGenericallyEquivalentTo(this Type t1, Type t2, MemberInfo member1, MemberInfo member2) 221private static bool IsTypeParameterEquivalentToTypeInst(this Type typeParam, Type typeInst, MemberInfo member) 250private static Func<MemberInfo, MemberInfo, bool> s_MemberEquivalence = (m1, m2) => 254Type memberInfo = typeof(MemberInfo); 261types: new Type[] { typeof(MemberInfo) }, 265Func<MemberInfo, MemberInfo, bool> apiDelegate = apiMethod.CreateDelegate<Func<MemberInfo, MemberInfo, bool>>(); 287var memberEquivalence = Expression.Lambda<Func<MemberInfo, MemberInfo, bool>>( 307Func<MemberInfo, MemberInfo, bool> fallbackMemberEquivalence = (m1param, m2param) => m1param.IsEquivalentTo(m2param); 314public static bool HasSameMetadataDefinitionAs(this MemberInfo mi1, MemberInfo mi2)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
26public MemberInfo AssociatedMemberInfo;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (6)
168IEnumerator<MemberInfo> memberEn = type 184MemberInfo member = memberEn.Current; 1592private static MethodSymbol FindMatchingMethod(MemberInfo method, AggregateSymbol callingAggregate) 1609private static TypeArray CreateParameterArray(MemberInfo associatedInfo, ParameterInfo[] parameters) 1630private static CType GetTypeOfParameter(ParameterInfo p, MemberInfo m) 1707private static MethodSymbol FindMethodFromMemberInfo(MemberInfo baseMemberInfo)
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
254MemberInfo member,
Microsoft.Maui (1)
WeakEventManager.cs (1)
123 void RemoveEventHandler(string eventName, object? handlerTarget, MemberInfo methodInfo)
Microsoft.Maui.Controls (12)
Interactivity\PropertyCondition.cs (2)
40 Func<MemberInfo> minforetriever = () => 70 Func<MemberInfo> minforetriever = () =>
IValueConverterProvider.cs (1)
11 object Convert(object value, Type toType, Func<MemberInfo> minfoRetriever, IServiceProvider serviceProvider);
Setter.cs (2)
34 MemberInfo minforetriever() 36 MemberInfo minfo = null;
StyleSheets\Style.cs (2)
99 Func<MemberInfo> minforetriever = 102 MemberInfo minfo = null;
Xaml\TypeConversionExtensions.cs (4)
43 static readonly ConcurrentDictionary<MemberInfo, TypeConverter> s_converterCache = new(); 62 internal static object ConvertTo(this object value, Type toType, Func<MemberInfo> minfoRetriever, 68 if (minfoRetriever != null && minfoRetriever() is MemberInfo memberInfo) 87 internal static bool TryGetTypeConverter(this MemberInfo memberInfo, [NotNullWhen(true)] out TypeConverter converter)
Xaml\ValueConverterProvider.cs (1)
13 public object Convert(object value, Type toType, Func<MemberInfo> minfoRetriever, IServiceProvider serviceProvider)
Microsoft.Maui.Controls.Xaml (7)
ApplyPropertiesVisitor.cs (1)
587 Func<MemberInfo> minforetriever;
MarkupExtensions\AppThemeBindingExtension.cs (2)
77 MemberInfo minforetriever() 82 MemberInfo minfo = null;
MarkupExtensions\OnIdiomExtension.cs (2)
72 MemberInfo minforetriever() 77 MemberInfo minfo = null;
MarkupExtensions\OnPlatformExtension.cs (2)
94 MemberInfo minforetriever() 99 MemberInfo minfo = null;
Microsoft.ML.Data (23)
Data\DataViewTypeManager.cs (1)
267/// <see cref="MemberInfo.GetCustomAttributes(bool)"/>.
Data\SchemaDefinition.cs (7)
169var cursorChannelAttrMembers = (cursorChannelAttrFields as IEnumerable<MemberInfo>).Concat(cursorChannelAttrProperties).ToArray(); 179var cursorChannelAttrMemberInfo = cursorChannelAttrMembers[0]; 331internal static MemberInfo[] GetMemberInfos(Type userType, Direction direction) 345return (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray(); 348internal static bool NeedToCheckMemberInfo(MemberInfo memberInfo) 382internal static bool GetNameAndCustomAttributes(MemberInfo memberInfo, Type userType, HashSet<string> colNames, out string name, out IEnumerable<Attribute> customAttributes) 425foreach (var memberInfo in memberInfos)
DataLoadSave\Database\DatabaseLoader.cs (2)
113var memberInfos = (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray(); 122var memberInfo = memberInfos[index];
DataLoadSave\Text\TextLoader.cs (2)
1581var memberInfos = (fieldInfos as IEnumerable<MemberInfo>).Concat(propertyInfos).ToArray(); 1590var memberInfo = memberInfos[index];
DataView\InternalSchemaDefinition.cs (6)
25public readonly MemberInfo MemberInfo; 35public Column(string columnName, DataViewType columnType, MemberInfo memberInfo) : 39public Column(string columnName, DataViewType columnType, MemberInfo memberInfo, 53private Column(string columnName, DataViewType columnType, MemberInfo memberInfo = null, 144public static void GetVectorAndItemType(MemberInfo memberInfo, out bool isVector, out Type itemType) 229MemberInfo memberInfo = null;
DataView\TypedCursor.cs (5)
141private static bool IsCompatibleType(DataViewType colType, MemberInfo memberInfo) 220private static void ValidateMemberInfo(MemberInfo memberInfo, IDataView data) 261MemberInfo[] memberInfos = null; 269foreach (var memberInfo in memberInfos) 280MemberInfo memberInfo = null;
Microsoft.VisualBasic.Core (80)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (23)
27ByVal flags As BindingFlags) As MemberInfo 28Dim mi() As MemberInfo 30Dim Selected As MemberInfo 96Dim mi As MemberInfo = GetMostDerivedMemberInfo(objIReflect, name, flags Or BindingFlags.GetField) 307Dim mi As MemberInfo = GetMostDerivedMemberInfo(objIReflect, name, flags Or BindingFlags.SetField) 547Dim member As MemberInfo 548Dim members As MemberInfo() 661ByRef DefaultName As String) As MemberInfo() 664Dim members As MemberInfo() 796Dim member As MemberInfo 797Dim members As MemberInfo() 979Dim mi() As MemberInfo 993Dim member As MemberInfo 1110ByVal flags As BindingFlags) As MemberInfo() 1121Private Shared Function MemberIsField(ByVal mi As MemberInfo()) As Boolean 1124Dim ThisMember As MemberInfo 1164Friend Shared Function DoesTargetObjectMatch(ByVal Value As Object, ByVal Member As MemberInfo) As Boolean 1185ByVal member As MemberInfo, 1208Friend Shared Sub VerifyObjRefPresentForInstanceCall(ByVal Value As Object, ByVal Member As MemberInfo) 1246Friend Shared Function GetNonGenericMembers(ByVal Members As MemberInfo()) As MemberInfo() 1262Dim NonGenericMembers(NonGenericMemberCount - 1) As MemberInfo 1281Friend Shared Function LegacyIsGeneric(ByVal Member As MemberInfo) As Boolean
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (10)
123Dim members As MemberInfo() = baseReference.GetMembers(memberName, False) 430Dim members As MemberInfo() = baseReference.GetMembers(memberName, True) 533Dim members As MemberInfo() = baseReference.GetMembers(memberName, False) 588Friend Shared Function IsZeroArgumentCall(ByVal member As MemberInfo) As Boolean 674Dim members As MemberInfo() = baseReference.GetMembers(methodName, True) 'MethodName is set during this call. 749Dim members As MemberInfo() = baseReference.GetMembers(methodName, False) 'MethodName is set during this call. 962Dim members As MemberInfo() = baseReference.GetMembers(MemberName, Not OptimisticSet) 1107Dim members As MemberInfo() = baseReference.GetMembers(memberName, False) 1211Dim members As MemberInfo() = baseReference.GetMembers(methodName, reportErrors) 1285ByVal members As MemberInfo(),
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (2)
38Dim members As MemberInfo() = container.LookupNamedMembers(OperatorCLSNames(op)) 70Dim members As MemberInfo() = container.LookupNamedMembers(OperatorCLSNames(op))
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (4)
479ByVal newCandidate As MemberInfo, 714ByVal members As MemberInfo(), 753Dim candidate As MemberInfo = members(index) 2800ByVal members As MemberInfo(),
Microsoft\VisualBasic\CompilerServices\Symbols.vb (31)
493Friend Shared Function IsGeneric(ByVal member As MemberInfo) As Boolean 510Friend Shared Function GetTypeParameters(ByVal member As MemberInfo) As Type() 650Friend Shared Function IsShared(ByVal member As MemberInfo) As Boolean 728Friend Shared Function IsNonPublicRuntimeMember(ByVal member As MemberInfo) As Boolean 751Private NotInheritable Class InheritanceSorter : Implements IComparer(Of MemberInfo) 756Private Function Compare(ByVal left As MemberInfo, ByVal right As MemberInfo) As Integer Implements IComparer(Of MemberInfo).Compare 857Private Shared ReadOnly s_noMembers As MemberInfo() = Array.Empty(Of MemberInfo)() 859Private Shared Function FilterInvalidMembers(ByVal members As MemberInfo()) As MemberInfo() 915Dim validMembers(validMemberCount - 1) As MemberInfo 937Friend Function LookupWinRTCollectionInterfaceMembers(ByVal memberName As String) As List(Of MemberInfo) 940Dim result As New List(Of MemberInfo) 943Dim members As MemberInfo() = implemented.GetMember(memberName, s_defaultLookupFlags) 956Friend Function LookupNamedMembers(ByVal memberName As String) As MemberInfo() 960Dim result As MemberInfo() 979Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionInterfaceMembers(memberName) 992Array.Sort(Of MemberInfo)(result, InheritanceSorter.Instance) 1001Private Function LookupWinRTCollectionDefaultMembers(ByRef defaultMemberName As String) As List(Of MemberInfo) 1004Dim result As New List(Of MemberInfo) 1007Dim members As MemberInfo() = LookupDefaultMembers(defaultMemberName, implemented) 1018Private Function LookupDefaultMembers(ByRef defaultMemberName As String, ByVal searchType As Type) As MemberInfo() 1040Dim result As MemberInfo() = Enumerable.ToArray(current.GetMember(potentialDefaultMemberName, s_defaultLookupFlags)) 1059ByVal reportErrors As Boolean) As MemberInfo() 1061Dim result As MemberInfo() 1069Dim collectionMethods As List(Of MemberInfo) = LookupWinRTCollectionDefaultMembers(memberName) 1304Private _item As MemberInfo 'The underlying method or property reflection object. 1511Public Shared Operator =(ByVal left As MemberInfo, ByVal right As Method) As Boolean 1515Public Shared Operator <>(ByVal left As MemberInfo, ByVal right As Method) As Boolean
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
710Friend Shared Function MemberToString(ByVal member As MemberInfo) As String
Microsoft\VisualBasic\CompilerServices\Utils.vb (3)
259Private Function IsGenericallyEquivalentTo(t1 As Type, t2 As Type, member1 As MemberInfo, member2 As MemberInfo) As Boolean 321Private Function IsTypeParameterEquivalentToTypeInst(typeParam As Type, typeInst As Type, member As MemberInfo) As Boolean
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (6)
47Private m_CachedMember As MemberInfo 2059Dim mi As MemberInfo() 2061Dim ThisMember As MemberInfo 2255Friend Shared Sub SecurityCheckForLateboundCalls(ByVal member As MemberInfo, ByVal objType As Type, ByVal objIReflect As IReflect) 2285Private Shared Function IsMemberPublic(ByVal Member As MemberInfo) As Boolean 2316Friend Sub CacheMember(ByVal member As MemberInfo)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
470[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MemberInfo))]
netstandard (1)
netstandard.cs (1)
1438[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MemberInfo))]
PresentationBuildTasks (58)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (6)
1889private Type GetEventHandlerType(MemberInfo memberInfo) 1908private CodeFieldReferenceExpression GetEvent(MemberInfo miEvent, string eventName, string eventHandler) 1922private CodeExpression GetEventDelegate(CodeContext cc, MemberInfo miEvent, string eventName, string eventHandler) 2079internal MarkupEventInfo(string eh, string en, MemberInfo mi, int ln) 2089internal MemberInfo mi; 3126internal void AddApplicationProperty(MemberInfo memberInfo, string attributeValue, int lineNumber)
MS\Internal\MarkupCompiler\ParserExtension.cs (2)
130MemberInfo memberInfo = xamlPropertyNode.PropInfo; 241MemberInfo miKnownEvent = null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1498MemberInfo memberInfo = XamlTypeMapper.GetStaticMemberInfo(targetType, memberName, false);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
4745PropertyMember is MemberInfo ||
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (3)
1535MemberInfo info = dynamicObject as MemberInfo; 1665MemberInfo mi = _parserContext.XamlTypeMapper.GetClrInfo(false,
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (7)
348private MemberInfo GetDependencyPropertyInfo(XamlPropertyNode xamlPropertyNode) 351MemberInfo dpInfo = GetPropertyOrEventInfo(xamlPropertyNode, ref member); 381private MemberInfo GetPropertyOrEventInfo(XamlNode xamlNode, ref string member) 426MemberInfo memberInfo = null; 435ref objectName) as MemberInfo; 508MemberInfo memberInfo = GetPropertyOrEventInfo(xamlEndAttributesNode, ref member); 1594MemberInfo _setterOrTriggerPropertyInfo;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (7)
376MemberInfo dpInfo = null; 397private MemberInfo GetDependencyPropertyInfo(XamlPropertyNode xamlPropertyNode) 400MemberInfo dpInfo = GetCLRPropertyInfo(xamlPropertyNode, ref member); 430private MemberInfo GetCLRPropertyInfo(XamlPropertyNode xamlPropertyNode, ref string member) 485MemberInfo memberInfo = null; 494ref objectName) as MemberInfo; 1881MemberInfo _setterOrTriggerPropertyMemberInfo;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlNodes.cs (3)
1651MemberInfo eventMember, // Could either be an eventinfo or a methodinfo for the Add<EventName>Handler method 1677internal MemberInfo EventMember 1773MemberInfo _eventMember;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (8)
939void WriteClrEvent(string eventName, MemberInfo eventMember, string value) 1098MemberInfo mi = propertyMember as MemberInfo; 1788MemberInfo mi = XamlTypeMapper.GetClrInfoForClass(false, 1799MemberInfo eventMember = (MemberInfo)XamlTypeMapper.GetClrInfoForClass( 2905MemberInfo eventMember = (MemberInfo)dynamicObject;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (15)
775private MemberInfo GetCachedMemberInfo( 790return infoRecord.GetPropertyMember(onlyPropInfo) as MemberInfo; 937internal MemberInfo GetClrInfo( 1212internal MemberInfo GetClrInfoForClass ( 1220MemberInfo mi = null; 1242private MemberInfo GetClrInfoForClass( 1252MemberInfo memberInfo = null; 2120MemberInfo memInfo = propertyMember as MemberInfo; 2311MemberInfo memberInfo = GetStaticMemberInfo(targetType, fieldName, true); 2325internal MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly) 2329MemberInfo mi = GetStaticMemberInfo(targetType, memberName, fieldInfoOnly, false); 2365private MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly, bool tryInternal) 2367MemberInfo memberInfo = null; 3535MemberInfo memberInfo = TypeConverterHelper.GetMemberInfoForPropertyConverter(dpOrPiOrMi);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
221internal static string GetTypeConverterAttributeData(MemberInfo mi, out Type converterType) 229private static string GetCustomAttributeData(MemberInfo mi, Type attrType, out Type typeValue)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (3)
44internal static MemberInfo GetMemberInfoForPropertyConverter(object dpOrPiOrMi) 46MemberInfo memberInfo = dpOrPiOrMi as PropertyInfo; 101internal static Type GetConverterType(MemberInfo memberInfo)
PresentationCore (5)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (2)
292private static System.Reflection.MemberInfo[] PublicMemberInfo = null; 306foreach (System.Reflection.MemberInfo info in PublicMemberInfo)
System\Windows\DurationConverter.cs (1)
110MemberInfo mi;
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
140MemberInfo mi;
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
121MemberInfo mi;
PresentationFramework (46)
MS\Internal\Data\ClrBindingWorker.cs (2)
799MemberInfo mi; 803if ((mi = info as MemberInfo) != null)
MS\Internal\Data\IndexedEnumerable.cs (1)
495MemberInfo[] defaultMembers = srcType.GetDefaultMembers();
MS\Internal\Data\PropertyPathWorker.cs (6)
1192MemberInfo[][] aryMembers = new MemberInfo[][] { GetIndexers(newType, k), null }; 1202MemberInfo[] defaultMembers = aryMembers[ii]; 1318private MemberInfo[] GetIndexers(Type type, int k) 1324List<MemberInfo> list = new List<MemberInfo>();
MS\Internal\Data\XDeferredAxisSource.cs (1)
77MemberInfo[] aryMembers = xda.GetType().GetDefaultMembers();
MS\Internal\Helper.cs (2)
599MemberInfo targetMember = targetProperty as MemberInfo;
MS\Internal\Interop\InternalDispatchObject.cs (2)
77MemberInfo[] IReflect.GetMember(string name, BindingFlags bindingAttr) 81MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr)
System\Windows\Markup\Baml2006\WpfKnownMember.cs (1)
200protected override MemberInfo LookupUnderlyingMember()
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
179protected override MemberInfo LookupUnderlyingMember() 181MemberInfo member = base.LookupUnderlyingMember();
System\Windows\Markup\BamlMapTable.cs (1)
1498MemberInfo memberInfo = XamlTypeMapper.GetStaticMemberInfo(targetType, memberName, false);
System\Windows\Markup\BamlRecordReader.cs (6)
3800internal virtual void SetClrComplexPropertyCore(object parentObject, object value, MemberInfo memberInfo) 3843MemberInfo memberInfo = (MemberInfo)GetCurrentObjectData(); 3853private void SetClrComplexProperty(object parentObject, MemberInfo memberInfo, object o) 4747MemberInfo memberInfo = (MemberInfo)GetParentObjectData();
System\Windows\Markup\BamlRecords.cs (1)
4745PropertyMember is MemberInfo ||
System\Windows\Markup\BamlWriter.cs (1)
1131MemberInfo[] infos = ownerType.GetMember(propName, MemberTypes.Property, BindingFlags.Instance | BindingFlags.Public);
System\Windows\Markup\MarkupExtensionParser.cs (3)
1535MemberInfo info = dynamicObject as MemberInfo; 1665MemberInfo mi = _parserContext.XamlTypeMapper.GetClrInfo(false,
System\Windows\Markup\XamlNodes.cs (1)
1651MemberInfo eventMember, // Could either be an eventinfo or a methodinfo for the Add<EventName>Handler method
System\Windows\Markup\XamlTypeMapper.cs (16)
775private MemberInfo GetCachedMemberInfo( 790return infoRecord.GetPropertyMember(onlyPropInfo) as MemberInfo; 937internal MemberInfo GetClrInfo( 1212internal MemberInfo GetClrInfoForClass ( 1220MemberInfo mi = null; 1242private MemberInfo GetClrInfoForClass( 1252MemberInfo memberInfo = null; 2120MemberInfo memInfo = propertyMember as MemberInfo; 2311MemberInfo memberInfo = GetStaticMemberInfo(targetType, fieldName, true); 2325internal MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly) 2329MemberInfo mi = GetStaticMemberInfo(targetType, memberName, fieldInfoOnly, false); 2365private MemberInfo GetStaticMemberInfo(Type targetType, string memberName, bool fieldInfoOnly, bool tryInternal) 2367MemberInfo memberInfo = null; 3535MemberInfo memberInfo = TypeConverterHelper.GetMemberInfoForPropertyConverter(dpOrPiOrMi); 3577MemberInfo memberInfo = TypeConverterHelper.GetMemberInfoForPropertyConverter(dpOrPiOrMi);
ReachFramework (9)
Serialization\Manager\MetroSerializationManager.cs (1)
812MemberInfo memberInfo = dependencyProperty.
Serialization\Manager\ReachSerializableProperties.cs (2)
844MemberInfo 849MemberInfo memberInfo = null;
Serialization\Manager\ReachSerializationCacheItems.cs (6)
212MemberInfo memberInfo = (MemberInfo) propertyInfo; 441MemberInfo memberInfo, 466MemberInfo memberInfo, 595MemberInfo 625MemberInfo memberInfo;
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
184MemberInfo? matchingMember = type.GetMember(memberName, allowedMemberTypes, searchFlags).FirstOrDefault();
System.ComponentModel.Composition (54)
Microsoft\Internal\ReflectionServices.cs (2)
16public static Assembly Assembly(this MemberInfo member) 67public static string GetDisplayName(this MemberInfo member)
System\ComponentModel\Composition\AttributedModel\AttributedExportDefinition.cs (2)
15private readonly MemberInfo _member; 21public AttributedExportDefinition(AttributedPartCreationInfo partCreationInfo, MemberInfo member, ExportAttribute exportAttribute, Type? typeIdentityType, string contractName)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (1)
108public static ReflectionMemberImportDefinition CreateMemberImportDefinition(MemberInfo member, ICompositionElement origin)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (9)
130foreach (MemberInfo member in GetExportMembers(_type).Concat(GetInheritedExports(_type))) 263foreach (MemberInfo member in GetExportMembers(_type)) 315private AttributedExportDefinition CreateExportDefinition(MemberInfo member, ExportAttribute exportAttribute) 322private static IEnumerable<MemberInfo> GetExportMembers(Type type) 421foreach (MemberInfo member in GetImportMembers(_type)) 441private static IEnumerable<MemberInfo> GetImportMembers(Type type) 448foreach (MemberInfo member in GetDeclaredOnlyImportMembers(type)) 463foreach (MemberInfo member in GetDeclaredOnlyImportMembers(baseType)) 472private static IEnumerable<MemberInfo> GetDeclaredOnlyImportMembers(Type type)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (6)
26internal static Type GetDefaultTypeFromMember(this MemberInfo member) 49internal static Type AdjustSpecifiedTypeIdentityType(this Type specifiedContractType, MemberInfo member) 98internal static void GetContractInfoFromExport(this MemberInfo member, ExportAttribute export, out Type? typeIdentityType, out string contractName) 111internal static string GetTypeIdentityFromExport(this MemberInfo member, Type? typeIdentityType) 133private static Type? GetTypeIdentityTypeFromExport(this MemberInfo member, ExportAttribute export) 257internal static void TryExportMetadataForMember(this MemberInfo member, out IDictionary<string, object?> dictionary)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (11)
27private Dictionary<LazyMemberInfo, MemberInfo[]>? _membersTable; 109private MemberInfo[] GetAccessors(LazyMemberInfo originalLazyMember) 159Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = BuildMembersTable(members!); 177private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members) 181Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 182Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 220MemberInfo[] genericAccessors = lazyMemberInfo.GetAccessors(); 221MemberInfo[] accessors = new MemberInfo[genericAccessors.Length];
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (12)
14private MemberInfo?[]? _accessors; 15private readonly Func<MemberInfo[]>? _accessorsCreator; 17public LazyMemberInfo(MemberInfo member) 33_accessors = new MemberInfo?[] { property.GetGetMethod(true), property.GetSetMethod(true) }; 37_accessors = new MemberInfo?[] { event_.GetRaiseMethod(true), event_.GetAddMethod(true), event_.GetRemoveMethod(true) }; 40_accessors = new MemberInfo[] { member }; 45public LazyMemberInfo(MemberTypes memberType, params MemberInfo[] accessors) 61public LazyMemberInfo(MemberTypes memberType, Func<MemberInfo[]> accessorsCreator) 76public MemberInfo[] GetAccessors() 80MemberInfo[] accessors = _accessorsCreator.Invoke(); 101if (_accessors != null && _accessors[0] is MemberInfo accessor) 152private static bool AreAccessorsValid(MemberTypes memberType, MemberInfo[] accessors, out string errorMessage)
System\ComponentModel\Composition\ReflectionModel\ReflectionExtensions.cs (5)
12MemberInfo[] accessors = lazyMember.GetAccessors(); 44public static LazyMemberInfo ToLazyMember(this MemberInfo member) 56MemberInfo[] accessors = new MemberInfo[] { property.GetGetMethod(true)!, property.GetSetMethod(true)! }; 129public static ReflectionWritableMember ToReflectionWritableMember(this MemberInfo member)
System\ComponentModel\Composition\ReflectionModel\ReflectionField.cs (1)
25public override MemberInfo UnderlyingMember
System\ComponentModel\Composition\ReflectionModel\ReflectionMember.cs (1)
36public abstract MemberInfo UnderlyingMember { get; }
System\ComponentModel\Composition\ReflectionModel\ReflectionMethod.cs (1)
25public override MemberInfo UnderlyingMember
System\ComponentModel\Composition\ReflectionModel\ReflectionProperty.cs (1)
33public override MemberInfo UnderlyingMember
System\ComponentModel\Composition\ReflectionModel\ReflectionType.cs (1)
19public override MemberInfo UnderlyingMember
System\Composition\Diagnostics\CompositionTrace.cs (1)
74internal static void DefinitionMismatchedExportArity(Type type, MemberInfo member)
System.ComponentModel.Composition.Registration (17)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (4)
36public static void Registration_MemberExportConventionOverridden(Type type, MemberInfo member) 55public static void Registration_MemberImportConventionOverridden(Type type, MemberInfo member) 74public static void Registration_OnSatisfiedImportNotificationOverridden(Type type, MemberInfo member) 108public static void Registration_MemberImportConventionMatchedTwice(Type type, MemberInfo member)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
229private static bool MemberHasExportMetadata(MemberInfo member)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
52MemberInfo memberInfo = ((MemberExpression)expr).Member;
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (11)
26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 130protected override IEnumerable<object> GetCustomAttributes(System.Reflection.MemberInfo member, IEnumerable<object> declaredAttributes) 139MemberInfo underlyingMemberType = ((Type)member).UnderlyingSystemType; 158if (element.Item1 is MemberInfo) 161switch (((MemberInfo)element.Item1).MemberType) 164if (!_memberInfos.TryGetValue((MemberInfo)element.Item1, out memberAttributes)) 166_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 176if (!_memberInfos.TryGetValue((MemberInfo)element.Item1, out memberAttributes)) 178_memberInfos.Add((MemberInfo)element.Item1, element.Item2); 229private List<Attribute> ReadMemberCustomAttributes(MemberInfo member)
System.ComponentModel.TypeConverter (9)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (3)
19public InstanceDescriptor(MemberInfo? member, ICollection? arguments) : this(member, arguments, true) 26public InstanceDescriptor(MemberInfo? member, ICollection? arguments, bool isComplete) 107public MemberInfo? MemberInfo { get; }
System\ComponentModel\ReflectEventDescriptor.cs (2)
283MemberInfo? memberInfo = currentReflectType!.GetEvent(eventName, bindingFlags); 406MemberInfo? memberInfo = currentReflectType.GetMethod(methodName, bindingFlags);
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
807MemberInfo? memberInfo; 848MemberInfo[] milist = specificType.GetMember(sta.PropertyName);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1125internal static Attribute[] ReflectGetAttributes(MemberInfo member)
System\Drawing\ColorConverter.cs (1)
98MemberInfo? member;
System.Composition.AttributedModel (1)
System\Composition\Convention\AttributedModelProvider.cs (1)
20public abstract IEnumerable<Attribute> GetCustomAttributes(System.Type reflectedType, MemberInfo member);
System.Composition.Convention (17)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (4)
36public static void Registration_MemberExportConventionOverridden(Type type, MemberInfo member) 55public static void Registration_MemberImportConventionOverridden(Type type, MemberInfo member) 74public static void Registration_OnSatisfiedImportNotificationOverridden(Type type, MemberInfo member) 108public static void Registration_MemberImportConventionMatchedTwice(Type type, MemberInfo member)
System\Composition\Convention\ConventionBuilder.cs (12)
19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 159public override IEnumerable<Attribute> GetCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member) 171var memberInfo = typeInfo as MemberInfo; 195var mi = element.Item1 as MemberInfo; 247private List<Attribute> ReadMemberCustomAttributes(Type reflectedType, System.Reflection.MemberInfo member) 260&& !_memberInfos.TryGetValue(member.DeclaringType.GetTypeInfo() as MemberInfo, out cachedAttributes)) 276GetCustomAttributes(null, reflectedType.GetTypeInfo() as MemberInfo); 324&& !_memberInfos.TryGetValue(reflectedType.GetTypeInfo() as MemberInfo, out cachedAttributes)) 340GetCustomAttributes(null, reflectedType.GetTypeInfo() as MemberInfo);
System\Composition\Convention\PartConventionBuilder.cs (1)
468private static bool MemberHasExportMetadata(MemberInfo member)
System.Composition.TypedParts (4)
System\Composition\Convention\AttributedModelProviderExtensions.cs (3)
14public static TAttribute GetDeclaredAttribute<TAttribute>(this AttributedModelProvider convention, Type reflectedType, MemberInfo member) where TAttribute : Attribute 19public static Attribute[] GetDeclaredAttributes(this AttributedModelProvider convention, Type reflectedType, MemberInfo member) 24public static TAttribute[] GetDeclaredAttributes<TAttribute>(this AttributedModelProvider convention, Type reflectedType, MemberInfo member) where TAttribute : Attribute
System\Composition\TypedParts\Util\DirectAttributeContext.cs (1)
12public override IEnumerable<Attribute> GetCustomAttributes(Type reflectedType, Reflection.MemberInfo member)
System.Diagnostics.TraceSource (4)
System\Diagnostics\SwitchAttribute.cs (4)
69GetAllRecursive((MemberInfo)type, switchAttribs); 70MemberInfo[] members = type.GetMembers(BindingFlags.Public | BindingFlags.NonPublic | 74foreach (MemberInfo member in members) 82private static void GetAllRecursive(MemberInfo member, List<object> switchAttribs)
System.Linq.Expressions (58)
System\Dynamic\DynamicObject.cs (1)
816MemberInfo[] methods = Value.GetType().GetMember(method.Name, MemberTypes.Method, BindingFlags.Public | BindingFlags.Instance);
System\Dynamic\Utils\TypeUtils.cs (1)
234public static bool IsValidInstanceType(MemberInfo member, Type instanceType)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
131private void EmitMemberAddress(MemberInfo member, Type? objectType)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (3)
790MemberInfo member = lvalue.Member; 846private void EmitMemberGet(MemberInfo member, Type? objectType) 1102private static Type GetMemberType(MemberInfo member)
System\Linq\Expressions\DebugViewWriter.cs (1)
525private void OutMember(Expression node, Expression? instance, MemberInfo member)
System\Linq\Expressions\Expression.cs (1)
262MemberInfo member = ((MemberExpression)expression).Member;
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
288public MemberInfo Member => _node.Member; 361public ReadOnlyCollection<MemberInfo>? Members => _node.Members;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
392private void OutMember(Expression? instance, MemberInfo member) 563ReadOnlyCollection<MemberInfo>? members = node.Members;
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
662private void CompileMemberAssignment(bool asVoid, MemberInfo refMember, Expression value, bool forBinding) 2445private void CompileMember(Expression? from, MemberInfo member, bool forBinding) 2759private static Type GetMemberType(MemberInfo member)
System\Linq\Expressions\MemberAssignment.cs (4)
17internal MemberAssignment(MemberInfo member, Expression expression) 56/// <param name="member">The <see cref="MemberInfo"/> for the member which is being assigned to.</param> 59public static MemberAssignment Bind(MemberInfo member, Expression expression) 87private static void ValidateSettableFieldOrPropertyMember(MemberInfo member, out Type memberType)
System\Linq\Expressions\MemberBinding.cs (2)
38protected MemberBinding(MemberBindingType type, MemberInfo member) 52public MemberInfo Member { get; }
System\Linq\Expressions\MemberExpression.cs (6)
20public MemberInfo Member => GetMember(); 45internal static MemberExpression Make(Expression? expression, MemberInfo member) 58internal virtual MemberInfo GetMember() 98internal override MemberInfo GetMember() => _field; 112internal override MemberInfo GetMember() => _property; 386public static MemberExpression MakeMemberAccess(Expression? expression, MemberInfo member)
System\Linq\Expressions\MemberListBinding.cs (7)
19internal MemberListBinding(MemberInfo member, ReadOnlyCollection<ElementInit> initializers) 61/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="MemberBinding.Member"/> property equal to.</param> 67public static MemberListBinding ListBind(MemberInfo member, params ElementInit[] initializers) 74/// <param name="member">A <see cref="MemberInfo"/> that represents a field or property to set the <see cref="MemberBinding.Member"/> property equal to.</param> 80public static MemberListBinding ListBind(MemberInfo member, IEnumerable<ElementInit> initializers) 92/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="MemberBinding.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns> 106/// <returns>A <see cref="MemberListBinding"/> that has the <see cref="MemberBinding.BindingType"/> property equal to <see cref="MemberBindingType.ListBinding"/>, the <see cref="MemberBinding.Member"/> property set to the <see cref="MemberInfo"/> that represents the property accessed in <paramref name="propertyAccessor"/>, and <see cref="MemberListBinding.Initializers"/> populated with the elements of <paramref name="initializers"/>.</returns>
System\Linq\Expressions\MemberMemberBinding.cs (9)
17/// Use the <see cref="Expression.MemberBind(MemberInfo, MemberBinding[])"/> factory methods to create a <see cref="MemberMemberBinding"/>. 22internal MemberMemberBinding(MemberInfo member, ReadOnlyCollection<MemberBinding> bindings) 65/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="MemberBinding.Member"/> property equal to.</param> 68public static MemberMemberBinding MemberBind(MemberInfo member, params MemberBinding[] bindings) 76/// <param name="member">The <see cref="MemberInfo"/> to set the <see cref="MemberBinding.Member"/> property equal to.</param> 79public static MemberMemberBinding MemberBind(MemberInfo member, IEnumerable<MemberBinding> bindings) 93/// <param name="propertyAccessor">The <see cref="MemberInfo"/> that represents a property accessor method.</param> 109/// <param name="propertyAccessor">The <see cref="MemberInfo"/> that represents a property accessor method.</param> 123private static void ValidateGettableFieldOrPropertyMember(MemberInfo member, out Type memberType)
System\Linq\Expressions\NewExpression.cs (15)
22internal NewExpression(ConstructorInfo? constructor, IReadOnlyList<Expression> arguments, ReadOnlyCollection<MemberInfo>? members) 66public ReadOnlyCollection<MemberInfo>? Members { get; } 98internal NewValueTypeExpression(Type type, ReadOnlyCollection<Expression> arguments, ReadOnlyCollection<MemberInfo>? members) 159/// <param name="members">An <see cref="IEnumerable{T}"/> of <see cref="MemberInfo"/> objects to use to populate the <see cref="NewExpression.Members"/> collection.</param> 162public static NewExpression New(ConstructorInfo constructor, IEnumerable<Expression>? arguments, IEnumerable<MemberInfo>? members) 173ReadOnlyCollection<MemberInfo> memberList = members.ToReadOnly(); 184/// <param name="members">An Array of <see cref="MemberInfo"/> objects to use to populate the <see cref="NewExpression.Members"/> collection.</param> 187public static NewExpression New(ConstructorInfo constructor, IEnumerable<Expression>? arguments, params MemberInfo[]? members) 189return New(constructor, arguments, (IEnumerable<MemberInfo>?)members); 220private static void ValidateNewArgs(ConstructorInfo constructor, ref ReadOnlyCollection<Expression> arguments, ref ReadOnlyCollection<MemberInfo> members) 234MemberInfo[]? newMembers = null; 239MemberInfo member = members[i]; 282newMembers = new MemberInfo[members.Count]; 299members = new TrueReadOnlyCollection<MemberInfo>(newMembers); 313private static void ValidateAnonymousTypeMember(ref MemberInfo member, out Type memberType, string paramName, int index)
System.Private.CoreLib (138)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (2)
406private static bool IsDefinedSafe(MemberInfo memberInfo, Type attributeType, bool inherit) 421private static Attribute[] GetCustomAttributesSafe(MemberInfo memberInfo, Type attributeType, bool inherit)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
2984MemberInfo member, 3014MemberInfo member,
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
13public static IList<CustomAttributeData> GetCustomAttributes(MemberInfo target)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeExtensions.cs (12)
19public static Attribute? GetCustomAttribute(this MemberInfo element, Type attributeType) 36public static T? GetCustomAttribute<T>(this MemberInfo element) where T : Attribute 45public static Attribute? GetCustomAttribute(this MemberInfo element, Type attributeType, bool inherit) 54public static T? GetCustomAttribute<T>(this MemberInfo element, bool inherit) where T : Attribute 73public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element) 82public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, bool inherit) 101public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType) 118public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element) where T : Attribute 127public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType, bool inherit) 136public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element, bool inherit) where T : Attribute 155public static bool IsDefined(this MemberInfo element, Type attributeType) 164public static bool IsDefined(this MemberInfo element, Type attributeType, bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (4)
13private readonly MemberInfo _memberInfo; 16public CustomAttributeNamedArgument(MemberInfo memberInfo, object? value) 31public CustomAttributeNamedArgument(MemberInfo memberInfo, CustomAttributeTypedArgument typedArgument) 67public MemberInfo MemberInfo => _memberInfo;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (2)
459public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 465public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (2)
208public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); } 216public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\IReflect.cs (2)
53MemberInfo[] GetMember(string name, BindingFlags bindingAttr); 57MemberInfo[] GetMembers(BindingFlags bindingAttr);
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberFilter.cs (1)
6public delegate bool MemberFilter(MemberInfo m, object? filterCriteria);
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (5)
32public virtual bool HasSameMetadataDefinitionAs(MemberInfo other) { throw NotImplemented.ByDesign; } 47public static bool operator ==(MemberInfo? left, MemberInfo? right) 65public static bool operator !=(MemberInfo? left, MemberInfo? right) => !(left == right);
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (4)
157public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 160public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 162public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (2)
122public MemberInfo? ResolveMember(int metadataToken) => ResolveMember(metadataToken, null, null); 124public virtual MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) { throw NotImplemented.ByDesign; }
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (10)
23private readonly Dictionary<MemberInfo, NullabilityState> _context = new(); 33private NullabilityState? GetNullableContext(MemberInfo? memberInfo) 93MemberInfo metaMember; 337private NullabilityInfo GetNullabilityInfo(MemberInfo memberInfo, Type type, NullableAttributeStateParser parser) 350private NullabilityInfo GetNullabilityInfo(MemberInfo memberInfo, Type type, NullableAttributeStateParser parser, ref int index) 422private void TryLoadGenericMetaTypeNullability(MemberInfo memberInfo, NullabilityInfo nullability) 424MemberInfo? metaMember = GetMemberMetadataDefinition(memberInfo); 441private static MemberInfo GetMemberMetadataDefinition(MemberInfo member) 462private void CheckGenericParameters(NullabilityInfo nullability, MemberInfo metaMember, Type metaType, Type? reflectedType)
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (2)
20public virtual MemberInfo Member => MemberImpl; 113protected MemberInfo MemberImpl = null!;
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (6)
91public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 124public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 151public sealed override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 154public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 157public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 166public sealed override MemberInfo[] GetDefaultMembers() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (4)
131public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => typeImpl.GetMember(name, type, bindingAttr); 134public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => typeImpl.GetMembers(bindingAttr); 136public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) => typeImpl.GetMemberWithSameMetadataDefinitionAs(member);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
66public virtual IEnumerable<MemberInfo> DeclaredMembers
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (3)
82public override MemberInfo[] GetDefaultMembers() 85MemberInfo[]? members = null; 93return members ?? Array.Empty<MemberInfo>();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
689internal static AmbiguousMatchException GetAmbiguousMatchException(MemberInfo memberInfo)
src\libraries\System.Private.CoreLib\src\System\Type.cs (13)
242public MemberInfo[] GetMember(string name) => GetMember(name, DefaultLookup); 245public virtual MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => GetMember(name, MemberTypes.All, bindingAttr); 248public virtual MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 257public MemberInfo[] GetMembers() => GetMembers(DefaultLookup); 260/// Searches for the <see cref="MemberInfo"/> on the current <see cref="Type"/> that matches the specified <see cref="MemberInfo"/>. 263/// The <see cref="MemberInfo"/> to find on the current <see cref="Type"/>. 272public virtual MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) 277foreach (MemberInfo myMemberInfo in GetMembers(all)) 288private protected static ArgumentException CreateGetMemberWithSameMetadataDefinitionAsNotFoundException(MemberInfo member) => 292public abstract MemberInfo[] GetMembers(BindingFlags bindingAttr); 465public virtual MemberInfo[] GetDefaultMembers() => throw NotImplemented.ByDesign;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (5)
146public virtual MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) 268MemberInfo[] ret = new MemberInfo[cnt]; 411private static bool FilterAttributeImpl(MemberInfo m, object filterCriteria) 493private static bool FilterNameImpl(MemberInfo m, object filterCriteria, StringComparison comparison)
src\System\Attribute.CoreCLR.cs (11)
445public static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType) 450public static Attribute[] GetCustomAttributes(MemberInfo element, Type attributeType, bool inherit) 466public static Attribute[] GetCustomAttributes(MemberInfo element) 471public static Attribute[] GetCustomAttributes(MemberInfo element, bool inherit) 483public static bool IsDefined(MemberInfo element, Type attributeType) 488public static bool IsDefined(MemberInfo element, Type attributeType, bool inherit) 505public static Attribute? GetCustomAttribute(MemberInfo element, Type attributeType) 510public static Attribute? GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit) 548MemberInfo member = element.Member; 562MemberInfo member = element.Member; 584MemberInfo member = element.Member;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (2)
184public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 190public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (2)
146public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { throw new NotSupportedException(); } 154public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
679public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
803public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 829public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
src\System\Reflection\MemberInfo.Internal.cs (2)
10internal bool HasSameMetadataDefinitionAsCore<TOther>(MemberInfo other) where TOther : MemberInfo
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
166public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeConstructorInfo>(other);
src\System\Reflection\RuntimeEventInfo.cs (1)
124public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeEventInfo>(other);
src\System\Reflection\RuntimeFieldInfo.cs (1)
45public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeFieldInfo>(other);
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
217public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeMethodInfo>(other);
src\System\Reflection\RuntimeModule.cs (1)
251public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
src\System\Reflection\RuntimeParameterInfo.cs (6)
14internal static ParameterInfo[] GetParameters(IRuntimeMethodInfo method, MemberInfo member, Signature sig) 21internal static ParameterInfo GetReturnParameter(IRuntimeMethodInfo method, MemberInfo member, Signature sig) 30IRuntimeMethodInfo methodHandle, MemberInfo member, Signature sig, out ParameterInfo? returnParameter, bool fetchReturnParameter) 151: this(accessor, (MemberInfo)property) 156private RuntimeParameterInfo(RuntimeParameterInfo accessor, MemberInfo member) 181int position, ParameterAttributes attributes, MemberInfo member)
src\System\Reflection\RuntimePropertyInfo.cs (1)
173public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimePropertyInfo>(other);
src\System\RuntimeType.CoreCLR.cs (22)
191private sealed class MemberInfoCache<T> where T : MemberInfo 1464where T : MemberInfo 1471where T : MemberInfo 2012internal static void ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception? e) 2145private static bool FilterApplyPrefixLookup(MemberInfo memberInfo, string name, bool ignoreCase) 2165MemberInfo memberInfo, BindingFlags bindingFlags, bool isPublic, bool isNonProtectedInternal, bool isStatic, 2699public override MemberInfo[] GetMembers(BindingFlags bindingAttr) 2709MemberInfo[] members = new MemberInfo[ 3047public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 3114MemberInfo[] compressMembers = (type == (MemberTypes.Method | MemberTypes.Constructor)) ? 3115new MethodBase[totalCount] : new MemberInfo[totalCount]; 3129public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) 3136MemberInfo? result = member.MemberType switch 3158private static RuntimeMethodInfo? GetMethodWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo method) 3174private static RuntimeConstructorInfo? GetConstructorWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo constructor) 3190private static RuntimePropertyInfo? GetPropertyWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo property) 3206private static RuntimeFieldInfo? GetFieldWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo field) 3222private static RuntimeEventInfo? GetEventWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo eventInfo) 3238private static RuntimeType? GetNestedTypeWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo nestedType) 3703public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeType>(other);
System.Private.DataContractSerialization (24)
System\Runtime\Serialization\AccessorBuilder.cs (2)
42public static Getter CreateGetter(MemberInfo memberInfo) 97public static Setter CreateSetter(MemberInfo memberInfo)
System\Runtime\Serialization\ClassDataContract.cs (2)
806MemberInfo[] memberInfos; 819MemberInfo member = memberInfos[i];
System\Runtime\Serialization\CodeGenerator.cs (2)
571internal Type LoadMember(MemberInfo memberInfo) 605internal void StoreMember(MemberInfo memberInfo)
System\Runtime\Serialization\DataContract.cs (1)
2203private static bool IsMemberVisibleInSerializationModule(MemberInfo member)
System\Runtime\Serialization\DataContractSurrogateCaller.cs (1)
47internal static object? GetCustomDataToExport(ISerializationSurrogateProvider2 surrogateProvider, MemberInfo memberInfo, Type dataContractType)
System\Runtime\Serialization\DataMember.cs (7)
15internal DataMember(MemberInfo memberInfo) 25internal MemberInfo MemberInfo => _helper.MemberInfo; 106private readonly MemberInfo _memberInfo; 111internal CriticalHelper(MemberInfo memberInfo) 129internal MemberInfo MemberInfo => _memberInfo; 248MemberInfo memberInfo = MemberInfo; 273MemberInfo memberInfo = MemberInfo;
System\Runtime\Serialization\Globals.cs (2)
332private static MemberInfo? s_schemaMemberInfoPlaceholder; 333internal static MemberInfo SchemaMemberInfoPlaceholder =>
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
508private bool TryWritePrimitive(Type type, LocalBuilder? value, MemberInfo? memberInfo, LocalBuilder? arrayItemIndex, LocalBuilder? name, int nameIndex)
System\Runtime\Serialization\ReflectionReader.cs (1)
240MemberInfo memberInfo = dataMember.MemberInfo;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
541private bool TryWritePrimitive(Type type, LocalBuilder? value, MemberInfo? memberInfo, LocalBuilder? arrayItemIndex, LocalBuilder ns, LocalBuilder? name, int nameIndex)
System\Runtime\Serialization\XPathQueryGenerator.cs (4)
24public static string CreateFromDataContractSerializer(Type type, MemberInfo[] pathToMember, out XmlNamespaceManager namespaces) 32public static string CreateFromDataContractSerializer(Type type, MemberInfo[] pathToMember, StringBuilder? rootElementXpath, out XmlNamespaceManager namespaces) 61private static DataContract ProcessDataContract(DataContract contract, ExportContext context, MemberInfo memberNode) 72private static DataContract ProcessClassDataContract(ClassDataContract contract, ExportContext context, MemberInfo memberNode)
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\Deserializer\ClassRecordFieldInfoDeserializer.cs (1)
19private readonly MemberInfo[] _fieldInfo;
System.Private.Windows.Core.TestUtilities (8)
DebuggerAttributes.cs (1)
58public static DebuggerBrowsableState? GetDebuggerBrowsableState(MemberInfo info)
TestAccessor.cs (7)
142MemberInfo? info = TestAccessor<T>.DynamicWrapper.GetFieldOrPropertyInfo(binder.Name); 154MemberInfo? info = TestAccessor<T>.DynamicWrapper.GetFieldOrPropertyInfo(binder.Name); 162private static MemberInfo? GetFieldOrPropertyInfo(string memberName) 165MemberInfo? info; 169info = (MemberInfo?)type?.GetField( 190private object? GetValue(MemberInfo memberInfo) 198private void SetValue(MemberInfo memberInfo, object? value)
System.Private.Xml (78)
System\Xml\Serialization\CodeGenerator.cs (4)
486internal Type LoadMember(object obj, MemberInfo memberInfo) 535internal Type LoadMember(MemberInfo memberInfo) 568internal Type LoadMemberAddress(MemberInfo memberInfo) 605internal void StoreMember(MemberInfo memberInfo)
System\Xml\Serialization\Mappings.cs (6)
189private MemberInfo? _memberInfo; 203internal MemberInfo? MemberInfo 901private MemberInfo? _memberInfo; 902private MemberInfo? _checkSpecifiedMemberInfo; 939internal MemberInfo? MemberInfo 945internal MemberInfo? CheckSpecifiedMemberInfo
System\Xml\Serialization\Models.cs (11)
159internal MemberInfo[] GetMemberInfos() 164MemberInfo[] members = Type.GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 165MemberInfo[] fieldsAndProps = new MemberInfo[members.Length]; 188internal FieldModel? GetFieldModel(MemberInfo memberInfo) 203private static void CheckSupportedMember(TypeDesc? typeDesc, MemberInfo member, Type type) 269private readonly MemberInfo? _memberInfo; 270private readonly MemberInfo? _checkSpecifiedMemberInfo; 294internal FieldModel(MemberInfo memberInfo, Type fieldType, TypeDesc fieldTypeDesc) 365internal MemberInfo? MemberInfo 369internal MemberInfo? CheckSpecifiedMemberInfo
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (9)
612MemberInfo memberInfo = ReflectionXmlSerializationHelper.GetEffectiveSetInfo(o.GetType(), memberName); 648var getSetMemberValueDelegateWithType = getSetMemberValueDelegateWithTypeMi.CreateDelegate<Func<MemberInfo, ReflectionXmlSerializationReaderHelper.SetMemberValueDelegate>>(); 660private static object? GetMemberValue(object o, MemberInfo memberInfo) 1050private static Type GetMemberType(MemberInfo memberInfo) 1753MemberInfo[] memberInfos = o!.GetType().GetMember(member.Mapping.Name); 1754MemberInfo memberInfo = memberInfos[0]; 1958private static void SetOrAddValueToMember(object o, object value, MemberInfo memberInfo) 1978private static void AddItemInArrayMember(object o, MemberInfo memberInfo, Type memberType, object item) 2059public static SetMemberValueDelegate GetSetMemberValueDelegateWithType<TObj, TParam>(MemberInfo memberInfo)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (12)
655MemberInfo memberInfo = ReflectionXmlSerializationHelper.GetEffectiveGetInfo(o.GetType(), memberName); 748private static object? GetMemberValue(object? o, MemberInfo memberInfo) 1334public static MemberInfo? GetMember(Type declaringType, string memberName, bool throwOnNotFound) 1336MemberInfo[] memberInfos = declaringType.GetMember(memberName); 1365MemberInfo memberInfo = memberInfos![0]; 1368foreach (MemberInfo mi in memberInfos) 1381public static MemberInfo GetEffectiveGetInfo(Type declaringType, string memberName) 1383MemberInfo memberInfo = GetMember(declaringType, memberName, true)!; 1394var mi = GetMember(parent, memberName, false); 1408public static MemberInfo GetEffectiveSetInfo(Type declaringType, string memberName) 1410MemberInfo memberInfo = GetMember(declaringType, memberName, true)!; 1421var mi = GetMember(parent, memberName, false);
System\Xml\Serialization\SoapReflectionImporter.cs (2)
149private SoapAttributes GetAttributes(MemberInfo memberInfo) 387foreach (MemberInfo memberInfo in model.GetMemberInfos())
System\Xml\Serialization\SourceInfo.cs (2)
36public readonly MemberInfo? MemberInfo; 41public SourceInfo(string source, string? arg, MemberInfo? memberInfo, Type? type, CodeGenerator ilg)
System\Xml\Serialization\Types.cs (17)
692internal TypeDesc GetTypeDesc(Type type, MemberInfo? source, bool directReference) 698internal TypeDesc GetTypeDesc(Type type, MemberInfo? source, bool directReference, bool throwOnError) 754private TypeDesc ImportTypeDesc(Type type, MemberInfo? memberInfo, bool directReference) 1047internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1072MemberInfo? memberInfo = memberMapping.MemberInfo; 1098internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1106private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1126Dictionary<string, MemberInfo>? replaceList = null; 1127MemberInfo? replacedInfo; 1128foreach (KeyValuePair<string, MemberInfo> pair in memberInfos) 1132replaceList ??= new Dictionary<string, MemberInfo>(); 1140foreach (KeyValuePair<string, MemberInfo> pair in replaceList) 1146if (replaceList.TryGetValue(mappings[i].Name, out MemberInfo? mi)) 1161MemberInfo memberInfoToBeReplaced, 1163out MemberInfo replacedInfo) 1258foreach (MemberInfo member in type.GetMember("System.Collections.Generic.IEnumerable<*", BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic)) 1323MemberInfo[] defaultMembers = type.GetDefaultMembers();
System\Xml\Serialization\XmlAttributes.cs (1)
176internal static object? GetAttr(MemberInfo memberInfo, Type attrType)
System\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (4)
18private MemberInfo? _memberInfo; 45internal MemberInfo? MemberInfo 51internal MemberInfo? GetMemberInfo() 56internal void SetMemberInfo(MemberInfo? memberInfo)
System\Xml\Serialization\XmlReflectionImporter.cs (4)
259private XmlAttributes GetAttributes(MemberInfo memberInfo) 851foreach (MemberInfo memberInfo in model.GetMemberInfos()) 1470MemberInfo[] infos = structModel.Type.GetMember(choice.MemberName, BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 1481infos = new MemberInfo[] { info };
System\Xml\Serialization\XmlSerializationILGen.cs (3)
25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 582MemberInfo memInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2792MemberInfo memInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1775MemberInfo[] memberInfos = type.GetMember(memberName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2335internal static SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo? memberInfo, CodeGenerator ilg)
System.Reflection (1)
System.Reflection.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MemberInfo))]
System.Reflection.Context (25)
System\Reflection\Context\Custom\AttributeUtils.cs (1)
137private static IEnumerable<object> GetFilteredAttributes(CustomReflectionContext context, MemberInfo member, Type attributeFilterType)
System\Reflection\Context\CustomReflectionContext.cs (2)
54protected virtual IEnumerable<object> GetCustomAttributes(MemberInfo member, IEnumerable<object> declaredAttributes) 136internal IEnumerable<object> GetCustomAttributesOnMember(MemberInfo member, IEnumerable<object> declaredAttributes, Type attributeFilterType)
System\Reflection\Context\CustomReflectionContext.Projector.cs (4)
221public override MemberInfo? ProjectMember(MemberInfo? value) 226MemberInfo? output; 270MemberInfo member = ProjectMember(value.MemberInfo);
System\Reflection\Context\Delegation\DelegatingModule.cs (1)
144public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
System\Reflection\Context\Delegation\DelegatingParameterInfo.cs (1)
28public override MemberInfo Member
System\Reflection\Context\Delegation\DelegatingType.cs (3)
175public override MemberInfo[] GetDefaultMembers() 240public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 348public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
System\Reflection\Context\Projection\ProjectingModule.cs (1)
87public override MemberInfo? ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
System\Reflection\Context\Projection\ProjectingParameterInfo.cs (1)
24public override MemberInfo Member
System\Reflection\Context\Projection\ProjectingType.cs (7)
59public override MemberInfo[] GetDefaultMembers() 108public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 113List<MemberInfo> matchingMembers = new List<MemberInfo>(); 229public override MemberInfo[] GetMembers(BindingFlags bindingAttr) 239MemberInfo[] members = new MemberInfo[
System\Reflection\Context\Projection\Projector.cs (2)
79public abstract MemberInfo? ProjectMember(MemberInfo? value);
System\Reflection\Context\Virtual\VirtualParameter.cs (2)
11public VirtualParameter(MemberInfo member, Type parameterType, string? name, int position) 30internal static ParameterInfo[] CloneParameters(MemberInfo member, ParameterInfo[] parameters, bool skipLastParameter)
System.Reflection.Emit (18)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (2)
459public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 465public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
System\Reflection\Emit\EnumBuilderImpl.cs (2)
141public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(); 145public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (2)
132public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(); 137public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException();
System\Reflection\Emit\ModuleBuilderImpl.cs (6)
613if (pair.Key is MemberInfo member) 729private EntityHandle GetMemberReferenceHandle(MemberInfo memberInfo) 815private MemberInfo GetOriginalMemberIfConstructedType(MemberInfo memberInfo) 1015internal EntityHandle GetMemberHandle(MemberInfo member) 1092private EntityHandle GetHandleForMember(MemberInfo member)
System\Reflection\Emit\TypeBuilderImpl.cs (6)
1190public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 1258MemberInfo[] compressMembers = (type == (MemberTypes.Method | MemberTypes.Constructor)) ? 1259new MethodBase[totalCount] : new MemberInfo[totalCount]; 1350public override MemberInfo[] GetMembers(BindingFlags bindingAttr) 1363MemberInfo[] members = new MemberInfo[
System.Reflection.MetadataLoadContext (38)
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (1)
16internal abstract class MemberPolicies<M> where M : MemberInfo
System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs (1)
27internal sealed class QueriedMemberList<M> where M : MemberInfo
System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs (2)
15internal partial struct QueryResult<M> where M : MemberInfo 77public void CopyTo(MemberInfo[] array, int startIndex)
System\Reflection\Runtime\BindingFlagSupport\QueryResult.Enumerator.cs (1)
8internal partial struct QueryResult<M> where M : MemberInfo
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
32public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other);
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (2)
17MemberInfo[] members = attributeType.GetMember(name, MemberTypes.Field | MemberTypes.Property, BindingFlags.Public | BindingFlags.Instance); 20MemberInfo match = members[0];
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
154MemberInfo? member;
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
43public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
45public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other);
System\Reflection\TypeLoading\General\Helpers.cs (2)
275public static bool HasSameMetadataDefinitionAsCore<M>(this M thisMember, MemberInfo other) where M : MemberInfo
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
40public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other);
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
87public sealed override MemberInfo ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens);
System\Reflection\TypeLoading\Parameters\RoParameter.cs (3)
14private readonly MemberInfo _member; 17protected RoParameter(MemberInfo member, int position) 25public sealed override MemberInfo Member => _member;
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
44public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other);
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (3)
165private QueryResult<M> Query<M>(BindingFlags bindingAttr) where M : MemberInfo 170private QueryResult<M> Query<M>(string name, BindingFlags bindingAttr) where M : MemberInfo 180private QueryResult<M> Query<M>(string? optionalName, BindingFlags bindingAttr, Func<M, bool>? optionalPredicate) where M : MemberInfo
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (9)
11public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => GetMemberImpl(null, MemberTypes.All, bindingAttr); 12public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) 22public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) 32private MemberInfo[] GetMemberImpl(string? optionalNameOrPrefix, MemberTypes type, BindingFlags bindingAttr) 37Func<MemberInfo, bool>? predicate = null; 47MemberInfo[]? results; 68results = (type == (MemberTypes.Method | MemberTypes.Constructor)) ? new MethodBase[numMatches] : new MemberInfo[numMatches]; 94private M[]? QuerySpecificMemberTypeIfRequested<M>(MemberTypes memberType, string? optionalName, BindingFlags bindingAttr, Func<MemberInfo, bool>? optionalPredicate, MemberTypes targetMemberType, out QueryResult<M> queryResult) where M : MemberInfo
System\Reflection\TypeLoading\RuntimeTypeInfo.TypeComponentsCache.cs (3)
43public QueriedMemberList<M> GetQueriedMembers<M>(string name, bool ignoreCase, bool immediateTypeOnly) where M : MemberInfo 62public QueriedMemberList<M> GetQueriedMembers<M>(bool immediateTypeOnly) where M : MemberInfo 126private sealed class PerNameQueryCache<M> : ConcurrentUnifier<string, QueriedMemberList<M>> where M : MemberInfo
System\Reflection\TypeLoading\Types\RoType.cs (3)
274public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => this.HasSameMetadataDefinitionAsCore(other); 292public sealed override MemberInfo[] GetDefaultMembers() 295return defaultMemberName != null ? GetMember(defaultMemberName) : Array.Empty<MemberInfo>();
System\ThrowHelper.cs (1)
19internal static AmbiguousMatchException GetAmbiguousMatchException(MemberInfo memberInfo)
System.Reflection.TypeExtensions (10)
System\Reflection\TypeExtensions.cs (10)
36public static MemberInfo[] GetDefaultMembers( 137public static MemberInfo[] GetMember( 152public static MemberInfo[] GetMember( 162public static MemberInfo[] GetMembers( 176public static MemberInfo[] GetMembers( 398/// <see cref="GetMetadataToken(MemberInfo)"/> throws <see cref="InvalidOperationException"/> otherwise. 401public static bool HasMetadataToken(this MemberInfo member) 421/// There is no metadata token available. <see cref="HasMetadataToken(MemberInfo)"/> returns false in this case. 423public static int GetMetadataToken(this MemberInfo member) 437private static int GetMetadataTokenOrZeroOrThrow(this MemberInfo member)
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordFieldInfoDeserializer.cs (1)
21private readonly MemberInfo[] _fieldInfo;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
473[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MemberInfo))]
System.Runtime.Serialization.Formatters (16)
System\Runtime\Serialization\FormatterServices.cs (9)
18private static readonly ConcurrentDictionary<MemberHolder, MemberInfo[]> s_memberInfoTable = new ConcurrentDictionary<MemberHolder, MemberInfo[]>(); 166public static MemberInfo[] GetSerializableMembers( 172public static MemberInfo[] GetSerializableMembers( 203internal static void SerializationSetValue(MemberInfo fi, object? target, object? value) 216public static object PopulateObjectMembers(object obj, MemberInfo[] members, object?[] data) 229MemberInfo member = members[i]; 258public static object?[] GetObjectData(object obj, MemberInfo[] members) 266MemberInfo member = members[i];
System\Runtime\Serialization\ObjectManager.cs (7)
510Debug.Assert(fixupInfo is MemberInfo); 512MemberInfo tempMember = (MemberInfo)fixupInfo; 646public void RegisterObject(object obj, long objectID, SerializationInfo? info, long idOfContainingObj, MemberInfo? member) 651internal void RegisterString(string? obj, long objectID, SerializationInfo? info, long idOfContainingObj, MemberInfo? member) 662public void RegisterObject(object obj, long objectID, SerializationInfo? info, long idOfContainingObj, MemberInfo? member, int[]? arrayIndex) 924public virtual void RecordFixup(long objectToBeFixed, MemberInfo member, long objectRequired)
System.Runtime.Serialization.Primitives (2)
System\Runtime\Serialization\ISerializationSurrogateProvider2.cs (2)
20/// <param name="memberInfo">A <see cref="MemberInfo"/> that describes the member.</param> 23object? GetCustomDataToExport(MemberInfo memberInfo, Type dataContractType);
System.Text.Json (27)
System\ReflectionExtensions.cs (7)
49public static bool HasRequiredMemberAttribute(this MemberInfo memberInfo) 56public static bool HasSetsRequiredMembersAttribute(this MemberInfo memberInfo) 62private static bool HasCustomAttributeWithName(this MemberInfo memberInfo, string fullName, bool inherit) 75public static TAttribute? GetUniqueCustomAttribute<TAttribute>(this MemberInfo memberInfo, bool inherit) 134public static MemberInfo GetGenericMemberDefinition(this MemberInfo member) 148foreach (MemberInfo genericMember in genericTypeDef.GetMember(member.Name, AllMemberFlags))
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverterFactory.cs (1)
20typeof(MemberInfo).IsAssignableFrom(type) ||
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (2)
133private static JsonConverter? GetCustomConverterForMember(Type typeToConvert, MemberInfo memberInfo, JsonSerializerOptions options) 175private static JsonConverter GetConverterFromAttribute(JsonConverterAttribute converterAttribute, Type typeToConvert, MemberInfo? memberInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (8)
203MemberInfo memberInfo, 225MemberInfo memberInfo, 324MemberInfo memberInfo, 364private static void DeterminePropertyPolicies(JsonPropertyInfo propertyInfo, MemberInfo memberInfo) 376private static void DeterminePropertyName(JsonPropertyInfo propertyInfo, MemberInfo memberInfo) 401private static void DeterminePropertyIsRequired(JsonPropertyInfo propertyInfo, MemberInfo memberInfo, bool shouldCheckForRequiredKeyword) 410internal static void DeterminePropertyAccessors<T>(JsonPropertyInfo<T> jsonPropertyInfo, MemberInfo memberInfo, bool useNonPublicAccessors) 470private static void DeterminePropertyNullability(JsonPropertyInfo propertyInfo, MemberInfo memberInfo, NullabilityInfoContext nullabilityCtx)
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
230private static TMemberInfo EnsureMemberExists<TMemberInfo>(TMemberInfo? memberInfo, string memberName) where TMemberInfo : MemberInfo
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
159/// will be populated with the underlying <see cref="MemberInfo" /> of the serialized property or field. 473internal abstract void DetermineReflectionPropertyAccessors(MemberInfo memberInfo, bool useNonPublicAccessors);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
144internal override void DetermineReflectionPropertyAccessors(MemberInfo memberInfo, bool useNonPublicAccessors)
System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.cs (1)
14private readonly Cache<(string id, Type declaringType, MemberInfo? member)> _cache;
System\Text\Json\ThrowHelper.Serialization.cs (4)
165public static void ThrowInvalidOperationException_CannotSerializeInvalidType(Type typeToConvert, Type? declaringType, MemberInfo? memberInfo) 208public static void ThrowInvalidOperationException_SerializationConverterOnAttributeInvalid(Type classType, MemberInfo? memberInfo) 220public static void ThrowInvalidOperationException_SerializationConverterOnAttributeNotCompatible(Type classTypeAttributeIsOn, MemberInfo? memberInfo, Type typeToConvert) 524public static void ThrowInvalidOperationException_SerializationDuplicateAttribute(Type attribute, MemberInfo memberInfo)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
247public INamedTypeSymbol? MemberInfoType => GetOrResolveType(typeof(MemberInfo), ref _MemberInfoType);
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
2949MemberInfo[] IReflect.GetMember(string name, BindingFlags bindingAttr) 2958MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr)
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
45MemberInfo? info;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionList.cs (2)
69private static object? GetCustomAttribute(MemberInfo info, Type attributeType) 75private static void GetMemberDisplayProperties(MemberInfo info, out string displayName, out string description, out string category)
System\ComponentModel\Design\DesignerHost.cs (2)
1246MemberInfo[] IReflect.GetMember(string name, BindingFlags bindingAttr) => typeof(IDesignerHost).GetMember(name, bindingAttr); 1249MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr) => typeof(IDesignerHost).GetMembers(bindingAttr);
System\ComponentModel\Design\InheritanceService.cs (2)
114MemberInfo member = field; 236protected virtual bool IgnoreInheritedMember(MemberInfo member, IComponent? component)
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
29protected override bool IgnoreInheritedMember(MemberInfo member, IComponent? component)
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
723foreach (var member in members)
System.Windows.Forms.Primitives.TestUtilities (1)
Metafiles\EmfValidateHelper.cs (1)
17/// The name of the calling method. Use <see cref="MethodBase.GetCurrentMethod()"/> and property <see cref="MemberInfo.Name"/>.
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (1)
871public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
System\Windows\Forms\PropertyGridTests.cs (1)
4298Reflection.MemberInfo[] properties = component.GetType().GetMembers();
System.Xaml (44)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
221internal static string GetTypeConverterAttributeData(MemberInfo mi, out Type converterType) 229private static string GetCustomAttributeData(MemberInfo mi, Type attrType, out Type typeValue)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
119MemberInfo[] members = type.GetMember(methodName, MemberTypes.Method, flags);
System\Xaml\Schema\CollectionReflector.cs (3)
296MemberInfo[] addMembers = type.GetMember(KnownStrings.Add, MemberTypes.Method, GetBindingFlags(type)); 299foreach (MemberInfo mi in addMembers) 348foreach (MemberInfo mi in type.GetMember(name, MemberTypes.Method,
System\Xaml\Schema\MemberReflector.cs (2)
197internal MemberInfo UnderlyingMember { get; set; } 287protected override MemberInfo Member
System\Xaml\Schema\Reflector.cs (1)
41protected abstract MemberInfo Member { get; }
System\Xaml\Schema\TypeReflector.cs (6)
584MemberInfo[] infos = UnderlyingType.GetMember(name, MemberTypes.Property, AllProperties_BF); 755MemberInfo[] adders = UnderlyingType.GetMember(adderName, MemberTypes.Method, AttachableProperties_BF); 763MemberInfo[] getters = UnderlyingType.GetMember(KnownStrings.Get + name, MemberTypes.Method, AttachableProperties_BF); 771MemberInfo[] setters = UnderlyingType.GetMember(KnownStrings.Set + name, MemberTypes.Method, AttachableProperties_BF); 779private void PrioritizeAccessors(MemberInfo[] accessors, bool isEvent, bool isGetter, out List<MethodInfo> preferredAccessors, out List<MethodInfo> otherAccessors) 1042protected override MemberInfo Member
System\Xaml\Schema\XamlDirective.cs (1)
194protected sealed override MemberInfo LookupUnderlyingMember()
System\Xaml\XamlMember.cs (5)
32private NullableReference<MemberInfo> _underlyingMember; 291public MemberInfo UnderlyingMember 304internal NullableReference<MemberInfo> UnderlyingMemberInternal 757protected virtual MemberInfo LookupUnderlyingMember() 953MemberInfo underlyingMember = UnderlyingMember;
System\Xaml\XamlObjectReader.cs (9)
1209ParameterInfo[] GetMethodParams(MemberInfo memberInfo) 1221void AddFactoryMethodAndValidateArguments(Type valueType, MemberInfo memberInfo, ICollection arguments, SerializerContext context, out ParameterInfo[] methodParams) 1321bool TryAddPositionalParameters(XamlType xamlType, MemberInfo member, ICollection arguments, SerializerContext context) 1390bool TryGetInstanceDescriptorInfo(object value, SerializerContext context, TypeConverter converter, out MemberInfo member, out ICollection arguments, out bool isComplete) 1407out MemberInfo member, out ICollection arguments, out bool isComplete) 1418bool TryGetDefaultConstructorInfo(XamlType type, out MemberInfo member, out ICollection arguments, out bool isComplete) 1512MemberInfo member = null; 1547MemberInfo instanceDescriptorMember = member; 1602void GetConstructorInfo(object value, XamlType valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
System\Xaml\XamlSchemaContext.cs (14)
467private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> _masterMemberList; 510private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> MasterMemberList 515Interlocked.CompareExchange(ref _masterMemberList, CreateDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember>(), null); 607var xpik = new ReferenceEqualityTuple<MemberInfo, MemberInfo>(pi, null); 619var xpik = new ReferenceEqualityTuple<MemberInfo, MemberInfo>(ei, null); 633var xpik = new ReferenceEqualityTuple<MemberInfo, MemberInfo>(getter, setter); 645var xpik = new ReferenceEqualityTuple<MemberInfo, MemberInfo>(adder, null);