Skip to main content

BlueprintId

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.BlueprintCatalogs

Represents a versioned blueprint id

public record BlueprintId : IComparable<BlueprintId>, ICkElementId, IConvertible, IEquatable<BlueprintId>

Inheritance Object → BlueprintId
Implements IComparable<BlueprintId>, ICkElementId, IConvertible, IEquatable<BlueprintId>

Remarks:

We use a dash ("-") to separate the blueprint id and the version. The version number of a blueprint allows to manage versioning of blueprints.

Properties​

Name​

Returns the name of the blueprint, e.g. "InfrastructureStarter"

public string Name { get; }

Property Value​

String

Version​

Returns the version of the blueprint, e.g. "1.0.0"

public CkVersion Version { get; }

Property Value​

CkVersion

FullName​

Returns the full name of the blueprint, e.g. "InfrastructureStarter-1.0.0"

public string FullName { get; }

Property Value​

String

SemanticVersionedFullName​

public string SemanticVersionedFullName { get; }

Property Value​

String

IsEmpty​

public bool IsEmpty { get; }

Property Value​

Boolean

Constructors​

BlueprintId(String)​

Creates a new BlueprintId from the given blueprintId.

public BlueprintId(string blueprintId)

Parameters​

blueprintId String

BlueprintId(String, String)​

Creates a new BlueprintId from the given blueprintId and version.

public BlueprintId(string blueprintId, string version)

Parameters​

blueprintId String

version String

BlueprintId(String, CkVersion)​

Creates a new BlueprintId from the given blueprintId and version.

public BlueprintId(string blueprintId, CkVersion version)

Parameters​

blueprintId String

version CkVersion

Methods​

GetTypeCode()​

public TypeCode GetTypeCode()

Returns​

TypeCode

ToBoolean(IFormatProvider)​

public bool ToBoolean(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Boolean

ToByte(IFormatProvider)​

public byte ToByte(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Byte

ToChar(IFormatProvider)​

public char ToChar(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Char

ToDateTime(IFormatProvider)​

public DateTime ToDateTime(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

DateTime

ToDecimal(IFormatProvider)​

public decimal ToDecimal(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Decimal

ToDouble(IFormatProvider)​

public double ToDouble(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Double

ToInt16(IFormatProvider)​

public short ToInt16(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Int16

ToInt32(IFormatProvider)​

public int ToInt32(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Int32

ToInt64(IFormatProvider)​

public long ToInt64(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Int64

ToSByte(IFormatProvider)​

public sbyte ToSByte(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

SByte

ToSingle(IFormatProvider)​

public float ToSingle(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

Single

ToString(IFormatProvider)​

public string ToString(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

String

ToType(Type, IFormatProvider)​

public object ToType(Type conversionType, IFormatProvider provider)

Parameters​

conversionType Type

provider IFormatProvider

Returns​

Object

ToUInt16(IFormatProvider)​

public ushort ToUInt16(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

UInt16

ToUInt32(IFormatProvider)​

public uint ToUInt32(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

UInt32

ToUInt64(IFormatProvider)​

public ulong ToUInt64(IFormatProvider provider)

Parameters​

provider IFormatProvider

Returns​

UInt64

CompareTo(BlueprintId)​

public int CompareTo(BlueprintId other)

Parameters​

other BlueprintId

Returns​

Int32

Equals(BlueprintId)​

public bool Equals(BlueprintId other)

Parameters​

other BlueprintId

Returns​

Boolean

ToString()​

Returns a string representation of the value.

public string ToString()

Returns​

String
A string representation of the value.

GetHashCode()​

public int GetHashCode()

Returns​

Int32

ToVersionRange()​

Converts to a version range

public BlueprintIdVersionRange ToVersionRange()

Returns​

BlueprintIdVersionRange