PropertyInfoExtensions.GetSetMethod 方法

定義

多載

GetSetMethod(PropertyInfo)

來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
C#
public static System.Reflection.MethodInfo GetSetMethod (this System.Reflection.PropertyInfo property);
C#
public static System.Reflection.MethodInfo? GetSetMethod (this System.Reflection.PropertyInfo property);

參數

property
PropertyInfo

傳回

適用於

.NET 9 和其他版本
產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0

GetSetMethod(PropertyInfo, Boolean)

來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
來源:
TypeExtensions.cs
C#
public static System.Reflection.MethodInfo GetSetMethod (this System.Reflection.PropertyInfo property, bool nonPublic);
C#
public static System.Reflection.MethodInfo? GetSetMethod (this System.Reflection.PropertyInfo property, bool nonPublic);

參數

property
PropertyInfo
nonPublic
Boolean

傳回

適用於

.NET 9 和其他版本
產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0