41 references to 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.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
428var obj = prop.GetGetMethod()!.Invoke(obj: null, parameters: null);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\DebuggerAttributes.cs (1)
91.Where(pi => pi.GetGetMethod() != null && GetDebuggerBrowsableState(pi) != DebuggerBrowsableState.Never);
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)
331if (pi.GetGetMethod()!.IsStatic)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
43MethodInfo? getterInfo = propertyInfo.GetGetMethod();
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (1)
330s_Span_get_Item ??= typeof(Span<object>).GetProperty("Item")!.GetGetMethod()!;
src\System\RuntimeType.CoreCLR.cs (1)
1310MethodInfo? associateMethod = propertyInfo.GetGetMethod() ?? propertyInfo.GetSetMethod();
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
896MethodInfo? getMethod = property.GetGetMethod();
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (1)
128s_ienumeratorGetCurrentMethod = typeof(IEnumerator).GetProperty("Current")!.GetGetMethod();
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
112s_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)
229MethodInfo? accessor = getPropertyGetter ? newDeclaredProperty.GetGetMethod() : newDeclaredProperty.GetSetMethod(); 250MethodInfo? accessor = getPropertyGetter ? inheritedProperty.GetGetMethod() : inheritedProperty.GetSetMethod();
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
557return property.GetGetMethod();
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
135MethodInfo? method = prop.GetGetMethod();
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
726if (member is PropertyInfo property && property.GetGetMethod() is MethodInfo getter && getter.GetParameters() is var parameters && parameters.Length > 0)
System.Xaml (1)
System\Xaml\Schema\CollectionReflector.cs (1)
260MethodInfo isReadOnlyMethod = genericICollection.GetProperty(KnownStrings.IsReadOnly).GetGetMethod();
System.Xaml.Tests (2)
System\Xaml\XamlMemberTests.cs (2)
330Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null)); 331Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null, XamlMemberInvoker.UnknownInvoker));