Table of Contents

Struct ResourceId

Namespace
MoonBark.GridPlacement.Core.Types
Assembly
MoonBark.GridPlacement.Core.dll

Strongly-typed identifier for resources. Prevents string typos and provides compile-time type safety.

public readonly record struct ResourceId : IEquatable<ResourceId>
Implements
Inherited Members

Constructors

ResourceId(string)

Strongly-typed identifier for resources. Prevents string typos and provides compile-time type safety.

public ResourceId(string Value)

Parameters

Value string

Properties

Value

Gets the string value of the resource ID.

public string Value { get; }

Property Value

string

Methods

FromString(string)

Creates a ResourceId from a string.

public static ResourceId FromString(string value)

Parameters

value string

Returns

ResourceId

ToString()

Returns the string representation of the resource ID.

public override string ToString()

Returns

string

Operators

implicit operator string(ResourceId)

Implicit conversion from ResourceId to string.

public static implicit operator string(ResourceId id)

Parameters

id ResourceId

Returns

string

implicit operator ResourceId(string)

Implicit conversion from string to ResourceId.

public static implicit operator ResourceId(string value)

Parameters

value string

Returns

ResourceId