1 override of SetMethod
System.Private.CoreLib (1)
System\Reflection\Runtime\PropertyInfos\RuntimePropertyInfo.cs (1)
179public sealed override MethodInfo SetMethod
105 references to SetMethod
Aspire.Hosting.CodeGeneration.Java (8)
JavaLanguageSupport.cs (8)
233if (upToDateCheckProperty.SetMethod is null || 234!upToDateCheckProperty.SetMethod.IsPublic || 240inputsProperty.SetMethod is null || 241!inputsProperty.SetMethod.IsPublic || 243fileExtensionsProperty.SetMethod is null || 244!fileExtensionsProperty.SetMethod.IsPublic || 246stampFileProperty.SetMethod is null || 247!stampFileProperty.SetMethod.IsPublic)
Aspire.Hosting.RemoteHost (2)
AtsCapabilityScanner.cs (2)
1565var isStatic = property.GetMethod?.IsStatic ?? property.SetMethod?.IsStatic ?? false; 2566property.SetMethod?.ReturnParameter.GetRequiredCustomModifiers().Contains(typeof(IsExternalInit)) != true;
Aspire.Hosting.Tests (1)
DebugSupportExtensionsTests.cs (1)
34Assert.All(contextType.GetProperties(), property => Assert.Null(property.SetMethod));
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
1145return propertyInfo.SetMethod != null && propertyInfo.SetMethod.IsPublic;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (2)
965MethodInfo setMethod = property.SetMethod; 1030MethodInfo setMethod = property.SetMethod;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
754MethodInfo setMethod = property.SetMethod;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataMember.cs (1)
347MethodInfo setMethod = property.SetMethod;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
280if (publicProperty != null && publicProperty.SetMethod != null)
Microsoft.AspNetCore.Components (6)
PersistentState\PersistentServicesRegistry.cs (2)
207if (propertyInfo.SetMethod == null || !propertyInfo.SetMethod.IsPublic)
Reflection\ComponentProperties.cs (2)
329if (parameterAttribute != null && (propertyInfo.SetMethod == null || !propertyInfo.SetMethod.IsPublic))
src\aspnetcore\src\Components\Shared\src\Reflection\PropertySetter.cs (2)
23if (property.SetMethod == null) 32var setMethod = property.SetMethod;
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Metadata\FormDataMetadataFactory.cs (2)
217if (property.SetMethod == null || !property.SetMethod.IsPublic)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertySetter.cs (2)
23if (property.SetMethod == null) 32var setMethod = property.SetMethod;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
277var setMethod = propertyInfo.SetMethod;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\HttpLoggingServiceExtensionsTests.cs (1)
82.Where(property => property.SetMethod?.IsPublic is true)
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
277var setMethod = propertyInfo.SetMethod;
Microsoft.AspNetCore.Http.Extensions (2)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (2)
217if (property.SetMethod == null || !property.SetMethod.IsPublic)
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
374propertyHelper.Property.SetMethod?.IsPublic == true &&
src\aspnetcore\src\Shared\PropertyActivator\PropertyActivator.cs (3)
91property.SetMethod != null && 92!property.SetMethod.IsStatic; 97properties = properties.Where(property => property.SetMethod is { IsPublic: true });
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
277var setMethod = propertyInfo.SetMethod;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataPropertyFilterBase.cs (2)
122if (!(property.SetMethod != null && 123property.SetMethod.IsPublic &&
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
277var setMethod = propertyInfo.SetMethod;
Microsoft.AspNetCore.Routing.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
277var setMethod = propertyInfo.SetMethod;
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\Node\RarTaskParameters.cs (1)
141if (property.SetMethod == null)
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
390var setter = property.SetMethod;
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
1259if (property.GetMethod != null || property.SetMethod != null) 1261MethodInfo accessor = property.GetMethod ?? property.SetMethod; // Must have at least one. 1270MethodInfo methSet = property.SetMethod;
Microsoft.Extensions.Configuration.Binder (4)
ConfigurationBinder.cs (4)
280property.SetMethod is null || 281(!options.BindNonPublicProperties && (!property.GetMethod.IsPublic || !property.SetMethod.IsPublic)) || 304isReadOnly: property.SetMethod is null || (!property.SetMethod.IsPublic && !options.BindNonPublicProperties));
Microsoft.Extensions.Diagnostics.Testing (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
556MethodInfo? temp73 = instance.SetMethod;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
281.Where(property => property.SetMethod?.IsPublic is true)
Microsoft.Maui.Controls (7)
BindingExpression.cs (4)
278 if (pi.CanWrite && pi.SetMethod.ReturnType == typeof(int)) 291 if (pi.CanWrite && pi.SetMethod.ReturnType == typeof(string)) 302 if (pi.CanWrite && pi.SetMethod.ReturnType == typeof(object)) 399 if (property is { CanWrite: true, SetMethod: { IsPublic: true, IsStatic: false } propertySetMethod })
PlatformBindingHelpers.cs (1)
84 var mi = target.GetType().GetProperty(targetProperty)?.SetMethod;
Shell\ShellContent.cs (2)
391 if (prop != null && prop.CanWrite && prop.SetMethod.IsPublic) 411 if (prop != null && prop.CanWrite && prop.SetMethod.IsPublic)
Microsoft.Maui.Controls.Xaml (3)
ApplyPropertiesVisitor.cs (1)
662 if (propertyInfo == null || !propertyInfo.CanWrite || (setter = propertyInfo.SetMethod) == null)
MarkupExtensionParser.cs (2)
76 setter = t.GetRuntimeProperty(prop).SetMethod; 87 setter = markupExtension.GetType().GetRuntimeProperty(prop).SetMethod;
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (2)
143(p.GetMethod != null && p.GetMethod.IsPublic) || (p.SetMethod != null && p.SetMethod.IsPublic);
System.Composition.Hosting (3)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (3)
55prop.SetMethod != null && prop.SetMethod.IsPublic && !prop.SetMethod.IsStatic))
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
31.Where(pi => pi.CanWrite && pi.SetMethod.IsPublic && !(pi.SetMethod.IsStatic))
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesFilterAndTransform.cs (1)
782else if (propertyInfo.GetMethod?.IsStatic == true || propertyInfo.SetMethod?.IsStatic == true)
System.Private.CoreLib (2)
System\Reflection\Runtime\BindingFlagSupport\PropertyPolicies.cs (2)
97accessor = property.SetMethod; 106MethodInfo? setter = property.SetMethod;
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\AccessorBuilder.cs (2)
192var setMethod = propInfo.SetMethod!.CreateDelegate<StructSetDelegate<DeclaringType, PropertyType>>(); 203var setMethod = propInfo.SetMethod!.CreateDelegate<Action<DeclaringType, PropertyType>>();
System\Runtime\Serialization\ClassDataContract.cs (2)
837MethodInfo? setMethod = property.SetMethod; 902MethodInfo? setMethod = property.SetMethod;
System\Runtime\Serialization\CodeGenerator.cs (1)
619MethodInfo? setMethod = property.SetMethod;
System\Runtime\Serialization\DataMember.cs (1)
279MethodInfo? setMethod = property.SetMethod;
System.Private.Xml (12)
System\Xml\Serialization\CodeGenerator.cs (2)
517result = currentProperty.SetMethod; 624MethodInfo? setMethod = property.SetMethod ?? GetPropertyMethodFromBaseType(property, false);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (6)
1768if (!isList && pi != null && pi.SetMethod != null && !pi.SetMethod.IsPublic) 1776else if (isList && pi != null && (pi.SetMethod == null || !pi.SetMethod.IsPublic)) 1788if (pi.SetMethod != null && !pi.SetMethod.IsPublic)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
1658if (memberInfo is PropertyInfo propInfo && propInfo.SetMethod == null) 1666if (mi is PropertyInfo pi && pi.SetMethod != null && pi.PropertyType == propInfo.PropertyType)
System\Xml\Serialization\Types.cs (2)
1179return propertyInfo.SetMethod != null && propertyInfo.SetMethod.IsPublic;
System.Reflection.DispatchProxy (4)
System\Reflection\DispatchProxyGenerator.cs (4)
336var ai = new PropertyAccessorInfo(pi.GetMethod, pi.SetMethod); 339if (pi.SetMethod != null) 340propertyMap[pi.SetMethod] = ai; 386PropertyAccessorInfo ai = propertyMap[pi.GetMethod ?? pi.SetMethod!];
System.Reflection.Emit (2)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
283if (property.SetMethod is MethodBuilderImpl sMb)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
982MethodInfo? setMethod = property.SetMethod;
System.Reflection.MetadataLoadContext (3)
System\Reflection\Runtime\BindingFlagSupport\PropertyPolicies.cs (2)
85property.GetMethod ?? property.SetMethod; 90MethodInfo? setter = property.SetMethod;
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
106public sealed override bool CanWrite => SetMethod != null;
System.Text.Json (5)
src\runtime\src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (1)
221return propertyInfo.GetMethod?.IsVirtual == true || propertyInfo.SetMethod?.IsVirtual == true;
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
599propertyInfo.SetMethod?.IsPublic == true || 901MethodInfo? setMethod = propertyInfo.SetMethod;
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
514MethodInfo? realMethod = propertyInfo.SetMethod;
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
210MethodInfo setMethodInfo = propertyInfo.SetMethod!;