Skip to content

PropertyInfoExtensions.HasInitSetter Method ​

Definition ​

Returns true if the specified PropertyInfo has a setter marked with the init modifier; false otherwise.

c#
public static bool HasInitSetter(this PropertyInfo property);

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property.

Returns ​

Boolean

true if property has a setter marked with the init modifier; false otherwise.