Skip to main content

BlueprintIdVersionRange

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.BlueprintCatalogs

Represents a versioned blueprint id with version range

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

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

Properties​

Name​

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

public string Name { get; }

Property Value​

String

BlueprintVersionRange​

Returns the version range of the blueprint (e.g. "1.0.0" or "[1.0,)")

public CkVersionRange BlueprintVersionRange { get; }

Property Value​

CkVersionRange

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​

BlueprintIdVersionRange(String)​

Creates a new BlueprintIdVersionRange from the given blueprintName.

public BlueprintIdVersionRange(string blueprintName)

Parameters​

blueprintName String

BlueprintIdVersionRange(String, String)​

Creates a new BlueprintIdVersionRange from the given name and blueprintVersionRange.

public BlueprintIdVersionRange(string name, string blueprintVersionRange)

Parameters​

name String

blueprintVersionRange String

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(BlueprintIdVersionRange)​

public int CompareTo(BlueprintIdVersionRange other)

Parameters​

other BlueprintIdVersionRange

Returns​

Int32

Equals(BlueprintIdVersionRange)​

public bool Equals(BlueprintIdVersionRange other)

Parameters​

other BlueprintIdVersionRange

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

IsSatisfiedBy(BlueprintId)​

Checks if a version satisfies this version range

public bool IsSatisfiedBy(BlueprintId version)

Parameters​

version BlueprintId
The version to check

Returns​

Boolean
True if the version is within the range, false otherwise