FieldInfo.IsLiteral Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the value is written at compile time and cannot be changed.
public:
property bool IsLiteral { bool get(); };
public bool IsLiteral { get; }
member this.IsLiteral : bool
Public ReadOnly Property IsLiteral As Boolean
Property Value
true
if the field has the Literal
attribute set; otherwise, false
.
Implements
Remarks
The IsLiteral
property is set when the FieldAttributes.Literal
attribute is set. If this attribute is set, the field cannot be changed and is constant.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.