41 references to GetGetMethod
Aspire.Hosting.Integration.Analyzers (2)
AspireExportAnalyzer.cs (2)
1951private static readonly MethodInfo? s_isExtensionGetter = typeof(INamedTypeSymbol).GetProperty("IsExtension")?.GetGetMethod(); 1952private static readonly MethodInfo? s_extensionParameterGetter = typeof(INamedTypeSymbol).GetProperty("ExtensionParameter")?.GetGetMethod();
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
234MethodInfo getMethod = propertyInfo.GetGetMethod();
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1367MethodInfo getMethod = defaultProp.GetGetMethod();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
36_taskTResultGetMethod = ((PropertyInfo)taskMethod.ReturnType.GetMember(ResultMethodName)[0]).GetGetMethod();
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
ConfigurationBindingGenerator.cs (2)
148InterceptableLocationVersionGetter = interceptableLocationType.GetProperty("Version", BindingFlags.Instance | BindingFlags.Public).GetGetMethod(); 149InterceptableLocationDataGetter = interceptableLocationType.GetProperty("Data", BindingFlags.Instance | BindingFlags.Public).GetGetMethod();
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
30typeof(ITypeParameterSymbol).GetProperty("AllowsRefLikeType")?.GetGetMethod()!.CreateDelegate(typeof(Func<ITypeParameterSymbol, bool>));
Microsoft.Gen.Logging (1)
Parser.cs (1)
25.GetProperty("AllowsRefLikeType")?.GetGetMethod()!
Microsoft.ML.Data (5)
Data\SchemaDefinition.cs (2)
166.Where(x => x.CanRead && x.CanWrite && x.GetGetMethod() != null && x.GetSetMethod() != null && x.GetIndexParameters().Length == 0) 341.Where(x => (((direction & Direction.Read) == Direction.Read && (x.CanRead && x.GetGetMethod() != null)) ||
DataLoadSave\Database\DatabaseLoader.cs (1)
111.Where(x => x.CanRead && x.GetGetMethod() != null && x.GetIndexParameters().Length == 0);
DataLoadSave\Text\TextLoader.cs (1)
1579.Where(x => x.CanRead && x.GetGetMethod() != null && x.GetIndexParameters().Length == 0);
Utils\ApiUtils.cs (1)
115var minfo = propertyInfo.GetGetMethod();
Microsoft.ML.Tests (1)
CollectionsDataViewTest.cs (1)
74if (!property.CanRead || !property.CanWrite || property.GetGetMethod() == null || property.GetSetMethod() == null)
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (2)
574member = CType(member, PropertyInfo).GetGetMethod() 999member = CType(member, PropertyInfo).GetGetMethod()
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (2)
1250Return propInfo.GetGetMethod 1263Debug.Assert(propInfo.GetGetMethod Is Nothing, "expected error condition")
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (1)
778Dim getMethod As MethodInfo = propertyBlock.GetGetMethod
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
663Return DirectCast(member, PropertyInfo).GetGetMethod.IsStatic 885Dim getMethod As MethodInfo = propertyBlock.GetGetMethod
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
640Dim accessor As MethodInfo = prop.GetGetMethod
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (2)
2152ThisMethod = ThisProperty.GetGetMethod() 2189ThisMethod = ThisProperty.GetGetMethod()
PresentationFramework (1)
System\Windows\PropertyPath.cs (1)
178mi = pi.GetGetMethod();
System.ComponentModel.Composition (2)
Microsoft\Internal\GenerationServices.cs (1)
37private static readonly MethodInfo ExceptionGetData = typeof(Exception).GetProperty("Data")!.GetGetMethod()!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
325proxyTypeBuilder.DefineMethodOverride(getMethodBuilder, propertyInfo.GetGetMethod()!);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
81MethodInfo? getMethod = pi.GetGetMethod();
System.Linq.Expressions (1)
System\Linq\Expressions\NewExpression.cs (1)
325if (pi.GetGetMethod()!.IsStatic)
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
43MethodInfo? getterInfo = propertyInfo.GetGetMethod();
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
898MethodInfo? getMethod = property.GetGetMethod();
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (1)
120s_ienumeratorGetCurrentMethod = typeof(IEnumerator).GetProperty("Current")!.GetGetMethod();
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
110s_ienumeratorGetCurrentMethod = typeof(IEnumerator).GetProperty("Current")!.GetGetMethod();
System.Private.Windows.Core.TestUtilities (1)
DebuggerAttributes.cs (1)
78.Where(pi => pi.GetGetMethod() is not null && GetDebuggerBrowsableState(pi) != DebuggerBrowsableState.Never);
System.Reflection.Context (2)
System\Reflection\Context\Custom\CustomType.cs (2)
227MethodInfo? accessor = getPropertyGetter ? newDeclaredProperty.GetGetMethod() : newDeclaredProperty.GetSetMethod(); 248MethodInfo? accessor = getPropertyGetter ? inheritedProperty.GetGetMethod() : inheritedProperty.GetSetMethod();
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
569return property.GetGetMethod();
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
31_taskTResultGetMethod = ((PropertyInfo)taskMethod.ReturnType.GetMember(ResultMethodName)[0]).GetGetMethod();
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
135MethodInfo? method = prop.GetGetMethod();
System.Xaml (1)
System\Xaml\Schema\CollectionReflector.cs (1)
260MethodInfo isReadOnlyMethod = genericICollection.GetProperty(KnownStrings.IsReadOnly).GetGetMethod();