MemberCollectionAttribute Class
Namespace: Stride.Core.AnnotationsAssembly: Stride.Core.dll
This attributes provides additional information on a member collection.
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field)]
public sealed class MemberCollectionAttribute : Attribute
Name | Description | |
---|---|---|
Properties | ||
CanReorderItems | Gets or sets whether the items of this collection can be reordered. If |
|
NotNullItems | Gets or sets whether the items of this collection can be null. If |
|
ReadOnly | Gets or sets whether this collection is read-only. If |
Properties
CanReorderItems
Gets or sets whether the items of this collection can be reordered. If true
, applications using
this collection should provide users a way to reorder items.
public bool CanReorderItems { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NotNullItems
Gets or sets whether the items of this collection can be null. If true
, applications using
this collection should prevent user to add null items to the collection.
public bool NotNullItems { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReadOnly
Gets or sets whether this collection is read-only. If true
, applications using this collection
should not allow adding or removing items.
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |