LockedAttribute

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

Remarks

Requirements

Namespace: Sansar.Script
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


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.