Class VersionedStruct
Class VersionedStruct.
Namespace: Mechatronics.SystemGraph
Syntax
[Serializable]
public class VersionedStruct
Constructors
VersionedStruct()
Initializes a new instance of the VersionedStruct class.
Declaration
protected VersionedStruct()
VersionedStruct(Int32)
Initializes a new instance of the VersionedStruct class.
Declaration
protected VersionedStruct(int version)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | version | The version. |
Fields
version
The actual version of this struct
Declaration
public int version
Field Value
| Type | Description |
|---|---|
| Int32 |
Properties
CurrentVersion
Gets the current version.
Declaration
public virtual int CurrentVersion { get; }
Property Value
| Type | Description |
|---|---|
| Int32 | The current version. |
Methods
Create<T>(Func<T>)
Creates the specified builder.
Declaration
protected static T Create<T>(Func<T> builder)
where T : VersionedStruct
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T> | builder | The builder. |
Returns
| Type | Description |
|---|---|
| T | T instance |
Type Parameters
| Name | Description |
|---|---|
| T | VersionedStruct type |