Skip to content

TypeExtensions.IsRecord Method ​

Definition ​

Returns true if the specified Type is a record class or record struct; false otherwise.

c#
public static bool IsRecord(this Type type);

View source

Parameters ​

NameTypeDescription
typeTypeThe type.

Returns ​

Boolean

true if the specified Type is a record class or record struct; false otherwise.