Skip to content

FieldInfoExtensions.IsConst Method ​

Definition ​

Returns true if the field is const; false otherwise.

c#
public static bool IsConst(this FieldInfo field);

View source

Parameters ​

NameTypeDescription
fieldFieldInfoThe field.

Returns ​

Boolean

true if the field is const; false otherwise.

Remarks ​

Equivalent to IsLiteral.