7 overrides of GetSetMethod
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
59public override MethodInfo GetSetMethod(bool nonPublic)
System.Private.CoreLib (2)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
146public override MethodInfo? GetSetMethod(bool nonPublic)
src\System\Reflection\RuntimePropertyInfo.cs (1)
259public override RuntimeMethodInfo? GetSetMethod(bool nonPublic)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
81public override MethodInfo? GetSetMethod(bool nonPublic)
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (1)
51public override MethodInfo? GetSetMethod(bool nonPublic)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
95public sealed override MethodInfo? GetSetMethod(bool nonPublic) => GetRoSetMethod()?.FilterAccessor(nonPublic);
System.Xaml.Tests (1)
System\Xaml\XamlMemberTests.cs (1)
2415public override MethodInfo? GetSetMethod(bool nonPublic)
52 references to GetSetMethod
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
755result = currentProperty.GetSetMethod(true); 870MethodInfo setMethod = property.GetSetMethod(true);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1324MethodInfo setMethod = property.GetSetMethod(true);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1608if (properties[i].CanWrite && properties[i].GetSetMethod(nonPublic: false) != null)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\PropertyInfoImpl.cs (1)
123var setMethod = this.Property.GetSetMethod(nonPublic);
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (2)
76&& prop1.GetSetMethod(true).IsEquivalentTo(prop2.GetSetMethod(true));
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (2)
57ParameterInfo[] parameters = p.GetSetMethod(true) != null ? 58p.GetSetMethod(true).GetParameters() : p.GetGetMethod(true).GetParameters();
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1251prop.isStatic = property.GetGetMethod(true) != null ? property.GetGetMethod(true).IsStatic : property.GetSetMethod(true).IsStatic;
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
264var hasPrivateSetter = property.GetSetMethod(true) != null;
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1063MethodInfo? setMethod = property.GetSetMethod(true);
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
980MethodInfo mi = pi.GetSetMethod(true);
PresentationFramework (3)
MS\Internal\Data\PropertyPathWorker.cs (1)
1617setter = pi.GetSetMethod(true); // 'true' means get a non-public setter
System\Windows\Markup\XamlTypeMapper.cs (2)
1103MethodInfo mi = pi.GetSetMethod(true); 1119MethodInfo mi = pi.GetSetMethod(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 (3)
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
430_setMethod = p.GetSetMethod(nonPublic: false); 452_setMethod = _propInfo.GetSetMethod(nonPublic: true);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1379MethodInfo? setMethod = propertyInfo.GetSetMethod(nonPublic: false);
System.Linq.Expressions (10)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
305@this.EmitCall(instanceLocal?.LocalType, pi.GetSetMethod(nonPublic: true)!);
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (3)
326MethodInfo method = node.Indexer.GetSetMethod(nonPublic: true)!; 821EmitCall(objectType, prop.GetSetMethod(nonPublic: true)!); 967EmitCall(objectType, (binding.Member as PropertyInfo)!.GetSetMethod(nonPublic: true)!);
System\Linq\Expressions\IndexExpression.cs (2)
306mi = pi.GetSetMethod(nonPublic: true); 404MethodInfo? setter = indexer.GetSetMethod(nonPublic: true);
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
632_instructions.EmitCall(index.Indexer.GetSetMethod(nonPublic: true)!); 666MethodInfo method = pi.GetSetMethod(nonPublic: true)!;
System\Linq\Expressions\MemberExpression.cs (2)
258mi = property.GetSetMethod(nonPublic: true); 322if (pi.CanWrite && CheckMethod(mi, pi.GetSetMethod(nonPublic: true)!))
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
196MethodInfo? setter = propertyInfo.GetSetMethod(true); 447return property.GetSetMethod(true)!.GetParametersAsSpan()[0].ParameterType;
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (2)
32public virtual MethodInfo? SetMethod => GetSetMethod(nonPublic: true); 33public MethodInfo? GetSetMethod() => GetSetMethod(nonPublic: false);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
623semiFinalist = semiFinalists[i].GetSetMethod(true);
src\System\Attribute.CoreCLR.cs (1)
92MethodInfo? propAccessor = property.GetGetMethod(true) ?? property.GetSetMethod(true);
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2118var setMethod = propInfo.GetSetMethod(true);
System.Reflection.Context (6)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
83return UnderlyingProperty.GetSetMethod(nonPublic);
System\Reflection\Context\Virtual\InheritedPropertyInfo.cs (1)
47MethodInfo? underlyingSetter = UnderlyingProperty.GetSetMethod(nonPublic);
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (4)
64get { return GetSetMethod(true) != null; } 85MethodInfo? setMethod = GetSetMethod(nonPublic); 113MethodInfo? setMethod = GetSetMethod(true); 216method = GetSetMethod(true);
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
581return property.GetSetMethod(nonPublic);
System.Xaml (2)
System\Xaml\Schema\TypeReflector.cs (1)
624IsPrivateOrNull(pi.GetSetMethod(true));
System\Xaml\XamlMember.cs (1)
790return pi.GetSetMethod(true);
System.Xaml.Tests (4)
System\Xaml\XamlMemberTests.cs (4)
1975typeof(DataClass).GetProperty(nameof(DataClass.Property))!.GetSetMethod(true)! 1980typeof(DataClass).GetProperty(nameof(DataClass.PrivateGetProperty))!.GetSetMethod(true)! 1985typeof(DataClass).GetProperty("PrivateProperty", BindingFlags.Instance | BindingFlags.NonPublic)!.GetSetMethod(true)! 2417return DelegatingProperty.GetSetMethod(nonPublic);