Class MemoryPackOrderAttribute
- Namespace
- MemoryPack
- Assembly
- Chronicler.MemoryPackShim.dll
Declares a member's MemoryPack-compatible order when the MemoryPack package is disabled.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class MemoryPackOrderAttribute : Attribute
- Inheritance
-
MemoryPackOrderAttribute
- Inherited Members
Constructors
MemoryPackOrderAttribute(int)
Records the member's declared position.
public MemoryPackOrderAttribute(int order)
Parameters
orderintThe order metadata to store as supplied.
Properties
Order
Gets the member order metadata.
public int Order { get; }
Property Value
- int
The integer passed to the attribute constructor.