PropertyInfo.GetSetMethod Method (Boolean)
When overridden in a derived class, returns the set accessor for this property.
Assembly: mscorlib (in mscorlib.dll)
Indicates whether the accessor should be returned if it is non-public. true if a non-public accessor is to be returned; otherwise, false.
Return ValueType: System.Reflection.MethodInfo
This property's Set method, or null, as shown in the following table.
The Set method for this property.
The set accessor is public.
nonPublic is true and the set accessor is non-public.
nonPublic is true, but the property is read-only.
nonPublic is false and the set accessor is non-public.
There is no set accessor.
To use the GetSetMethod method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetSetMethod method.
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0