7 overrides of GetGetMethod
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
49public override MethodInfo GetGetMethod(bool nonPublic)
System.Private.CoreLib (2)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
136public override MethodInfo? GetGetMethod(bool nonPublic)
src\System\Reflection\RuntimePropertyInfo.cs (1)
251public override RuntimeMethodInfo? GetGetMethod(bool nonPublic)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
71public override MethodInfo? GetGetMethod(bool nonPublic)
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (1)
44public override MethodInfo? GetGetMethod(bool nonPublic)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
94public sealed override MethodInfo? GetGetMethod(bool nonPublic) => GetRoGetMethod()?.FilterAccessor(nonPublic);
System.Xaml.Tests (1)
System\Xaml\XamlMemberTests.cs (1)
2405public override MethodInfo? GetGetMethod(bool nonPublic)
52 references to GetGetMethod
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (3)
751result = currentProperty.GetGetMethod(true); 795MethodInfo getMethod = property.GetGetMethod(true); 832MethodInfo getMethod = property.GetGetMethod(true);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1319MethodInfo getMethod = property.GetGetMethod(true);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\PropertyInfoImpl.cs (1)
112var method = this.Property.GetGetMethod(nonPublic);
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (2)
75&& prop1.GetGetMethod(true).IsEquivalentTo(prop2.GetGetMethod(true))
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
58p.GetSetMethod(true).GetParameters() : p.GetGetMethod(true).GetParameters();
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
1251prop.isStatic = property.GetGetMethod(true) != null ? property.GetGetMethod(true).IsStatic : property.GetSetMethod(true).IsStatic;
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
650var meth = prop.GetGetMethod(false);
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
988MethodInfo mi = pi.GetGetMethod(true); 996MethodInfo mi = pi.GetGetMethod(true);
PresentationFramework (2)
System\Windows\Markup\XamlTypeMapper.cs (2)
1111MethodInfo mi = pi.GetGetMethod(true); 1132MethodInfo mi = pi.GetGetMethod(true);
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
33_accessors = new MemberInfo?[] { property.GetGetMethod(true), property.GetSetMethod(true) };
System\ComponentModel\Composition\ReflectionModel\ReflectionExtensions.cs (2)
56MemberInfo[] accessors = new MemberInfo[] { property.GetGetMethod(true)!, property.GetSetMethod(true)! }; 85return CreateReflectionProperty(property.GetGetMethod(true)!, property.GetSetMethod(true)!);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
339_getMethod = _propInfo.GetGetMethod(nonPublic: true);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1378MethodInfo? getMethod = propertyInfo.GetGetMethod(nonPublic: false);
System.Linq.Expressions (10)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
287EmitCall(instanceType, pi.GetGetMethod(nonPublic: true)!);
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
298MethodInfo method = node.Indexer.GetGetMethod(nonPublic: true)!; 865EmitCall(objectType, prop.GetGetMethod(nonPublic: true)!);
System\Linq\Expressions\IndexExpression.cs (2)
298MethodInfo? mi = pi.GetGetMethod(nonPublic: true); 392MethodInfo? getter = indexer.GetGetMethod(nonPublic: true);
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
593_instructions.EmitCall(index.Indexer.GetGetMethod(nonPublic: true)!); 2326_instructions.EmitCall(property.GetGetMethod(nonPublic: true)!); 2486MethodInfo method = pi.GetGetMethod(nonPublic: true)!;
System\Linq\Expressions\MemberExpression.cs (2)
254MethodInfo? mi = property.GetGetMethod(nonPublic: true); 318if (pi.CanRead && CheckMethod(mi, pi.GetGetMethod(nonPublic: true)!))
System.Net.HttpListener (1)
System\Net\Windows\CookieExtensions.cs (1)
44s_getVariantFunc ??= (Func<Cookie, CookieVariant>)typeof(Cookie).GetProperty("Variant", BindingFlags.Instance | BindingFlags.NonPublic)?.GetGetMethod(true)?.CreateDelegate(typeof(Func<Cookie, CookieVariant>))!;
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
195MethodInfo? getter = propertyInfo.GetGetMethod(true); 442if (property.GetGetMethod(true) is MethodInfo method)
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (2)
28public virtual MethodInfo? GetMethod => GetGetMethod(nonPublic: true); 29public MethodInfo? GetGetMethod() => GetGetMethod(nonPublic: false);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
627semiFinalist = semiFinalists[i].GetGetMethod(true);
src\System\Attribute.CoreCLR.cs (1)
92MethodInfo? propAccessor = property.GetGetMethod(true) ?? property.GetSetMethod(true);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (1)
141s_getItemContractMethod = typeof(CollectionDataContract).GetProperty("ItemContract", Globals.ScanAllMembers)!.GetGetMethod(nonPublic: true);
System.Reflection.Context (6)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
73return UnderlyingProperty.GetGetMethod(nonPublic);
System\Reflection\Context\Virtual\InheritedPropertyInfo.cs (1)
38MethodInfo? underlyingGetter = UnderlyingProperty.GetGetMethod(nonPublic);
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (4)
59get { return GetGetMethod(true) != null; } 84MethodInfo? getMethod = GetGetMethod(nonPublic); 104MethodInfo? getMethod = GetGetMethod(true); 209MethodInfo? method = GetGetMethod(true);
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
565return property.GetGetMethod(nonPublic);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\InheritanceService.cs (1)
136member = fieldProp.GetGetMethod(true)!;
System.Xaml (2)
System\Xaml\Schema\TypeReflector.cs (1)
623return IsPrivateOrNull(pi.GetGetMethod(true)) &&
System\Xaml\XamlMember.cs (1)
774return pi?.GetGetMethod(true);
System.Xaml.Tests (4)
System\Xaml\XamlMemberTests.cs (4)
1846typeof(DataClass).GetProperty(nameof(DataClass.Property))!.GetGetMethod(true)! 1851typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!.GetGetMethod(true)! 1856typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!.GetGetMethod(true)! 2407return DelegatingProperty.GetGetMethod(nonPublic);