LockedAttribute Class
Locks the IDictionary or IList properties so entries can not be added or removed.
Syntax
[System.AttributeUsage(System.AttributeTargets.Field)]
public class LockedAttribute : Attribute
public class LockedAttribute : Attribute
Remarks
Should be used in conjunction with Sansar.Script.EntriesAttribute or Sansar.Script.AddEntryAttribute.
Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Members
See Also: Inherited members from Attribute.
Public Constructors
|
Locks the IDictionary or IList properties so entries can not be added or removed. |
Member Details
LockedAttribute Constructor
Locks the IDictionary or IList properties so entries can not be added or removed.Syntax
public LockedAttribute ()Remarks
Should be used in conjunction with Sansar.Script.EntriesAttribute or Sansar.Script.AddEntryAttribute. IDictionary keys will be unchangeable and entries can not be added or removed. IList entries can not be added or removed. Will not prevent values from being modified in either case. Has no effect on other parameter types.Example
C# Example [Locked] public IList<float>floatList;Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
0 Comments