Skip to content

DiGi.Core.Parameter

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Core.Parameter Namespace

Classes

Create Class

Provides factory methods for creating parameter-related objects.

public static class Create

Inheritance System.Object → Create

Methods

Create.ExternalParameterDefinition(Guid, string, string, ParameterType, Type, AccessType, bool, string) Method

Creates a new external parameter definition with the specified properties.

public static DiGi.Core.Parameter.Classes.ExternalParameterDefinition? ExternalParameterDefinition(System.Guid guid, string? name, string? description, DiGi.Core.Parameter.Enums.ParameterType parameterType, System.Type? type, DiGi.Core.Parameter.Enums.AccessType accessType=DiGi.Core.Parameter.Enums.AccessType.ReadWrite, bool nullable=true, string? groupName=null);

Parameters

guid System.Guid

The unique identifier for the parameter.

name System.String

The name of the parameter.

description System.String

A description of the parameter.

parameterType ParameterType

The type category of the parameter.

type System.Type

The underlying system type of the parameter.

accessType AccessType

The access level of the parameter.

nullable System.Boolean

Whether the parameter can be null.

groupName System.String

The name of the group this parameter belongs to.

Returns

ExternalParameterDefinition
A new instance of ExternalParameterDefinition, or null if creation fails.

Create.ExternalParameterDefinition(Guid, string, string, double, double, Type, AccessType, bool, string) Method

Creates a new external parameter definition with specified range constraints.

public static DiGi.Core.Parameter.Classes.ExternalParameterDefinition? ExternalParameterDefinition(System.Guid guid, string? name, string? description, double min, double max, System.Type? type, DiGi.Core.Parameter.Enums.AccessType accessType=DiGi.Core.Parameter.Enums.AccessType.ReadWrite, bool nullable=true, string? groupName=null);

Parameters

guid System.Guid

The unique identifier for the parameter.

name System.String

The name of the parameter.

description System.String

A description of the parameter.

min System.Double

The minimum value constraint.

max System.Double

The maximum value constraint.

type System.Type

The type of the parameter.

accessType AccessType

The access level of the parameter.

nullable System.Boolean

Whether the parameter can be null.

groupName System.String

The name of the group this parameter belongs to.

Returns

ExternalParameterDefinition
A new instance of ExternalParameterDefinition, or null if creation fails.

Create.JsonArray(this IEnumerable<Type>) Method

Converts a collection of types to a JsonArray.

public static System.Text.Json.Nodes.JsonArray? JsonArray(this System.Collections.Generic.IEnumerable<System.Type>? types);

Parameters

types System.Collections.Generic.IEnumerable<System.Type>

The collection of types to convert.

Returns

System.Text.Json.Nodes.JsonArray
A JsonArray containing the full type names, or null if the input is null.

Create.Parameter(string, object) Method

Creates a parameter using a specified name and value.

public static DiGi.Core.Parameter.Classes.Parameter? Parameter(string? name, object? value);

Parameters

name System.String

The name of the parameter.

value System.Object

The value to assign to the parameter.

Returns

Parameter
A Parameter instance, or null.

Create.Parameter(this IParameterDefinition, object, SetValueSettings) Method

Creates a parameter based on the provided definition and value.

public static DiGi.Core.Parameter.Classes.Parameter? Parameter(this DiGi.Core.Parameter.Interfaces.IParameterDefinition? parameterDefinition, object? value, DiGi.Core.Parameter.Classes.SetValueSettings? setValueSettings=null);

Parameters

parameterDefinition IParameterDefinition

The definition of the parameter.

value System.Object

The value to assign to the parameter.

setValueSettings SetValueSettings

Optional settings for setting the value.

Returns

Parameter
A Parameter instance, or null.

Create.Types(this JsonArray) Method

Converts a JsonArray to a list of types.

public static System.Collections.Generic.List<System.Type>? Types(this System.Text.Json.Nodes.JsonArray? jsonArray);

Parameters

jsonArray System.Text.Json.Nodes.JsonArray

The JsonArray to convert.

Returns

System.Collections.Generic.List<System.Type>
A list of types, or null if the input is null.

Query Class

public static class Query

Inheritance System.Object → Query

Methods

Query.AssociatedTypes(Type) Method

Retrieves the associated types for the specified type.

public static DiGi.Core.Parameter.Classes.AssociatedTypes? AssociatedTypes(System.Type? type);

Parameters

type System.Type

The type for which to retrieve associated types.

Returns

AssociatedTypes
The associated types for the specified type, or null if none are found.

Query.Description(this Enum) Method

Gets the description of the specified enumeration value.

public static string? Description(this System.Enum? @enum);

Parameters

enum System.Enum

The enumeration value for which to get the description.

Returns

System.String
The description of the specified enumeration value, or null if no description is found.

Query.Description(this Type) Method

Gets the description of the specified type.

public static string? Description(this System.Type? type);

Parameters

type System.Type

The type for which to get the description.

Returns

System.String
The description of the specified type, or null if no description is found.

Query.IsValid(this ParameterType, object) Method

Validates whether the provided value is valid for the given parameter type.

public static bool IsValid(this DiGi.Core.Parameter.Enums.ParameterType parameterType, object? value);

Parameters

parameterType ParameterType

The parameter type to validate against.

value System.Object

The value to be validated.

Returns

System.Boolean
True if the value is valid for the specified parameter type; otherwise, false.

Query.ParameterProperties(Enum) Method

Retrieves the properties associated with the specified enumeration value.

public static DiGi.Core.Parameter.Classes.ParameterProperties? ParameterProperties(System.Enum? @enum);

Parameters

enum System.Enum

The enumeration value to retrieve properties for.

Returns

ParameterProperties
The ParameterProperties associated with the specified enumeration, or null if not found.

Query.ParameterProperties(Type, string) Method

Retrieves the properties associated with the specified type and identifier.

public static DiGi.Core.Parameter.Classes.ParameterProperties? ParameterProperties(System.Type? type, string? text);

Parameters

type System.Type

The type to retrieve properties for.

text System.String

The identifier text used to look up the properties.

Returns

ParameterProperties
The ParameterProperties associated with the specified type and text, or null if not found.

Query.ParameterType(Enum) Method

Gets the parameter type for the specified enumeration value.

public static DiGi.Core.Parameter.Enums.ParameterType ParameterType(System.Enum? @enum);

Parameters

enum System.Enum

The enumeration value.

Returns

ParameterType
The corresponding ParameterType.

Query.ParameterType(Type, string) Method

Gets the parameter type for the specified type and identifier.

public static DiGi.Core.Parameter.Enums.ParameterType ParameterType(System.Type? type, string? text);

Parameters

type System.Type

The type to evaluate.

text System.String

The identifier text.

Returns

ParameterType
The corresponding ParameterType.

Query.ParameterValue<TParameterValue>(Enum) Method

Retrieves the parameter value associated with the specified enumeration.

public static TParameterValue? ParameterValue<TParameterValue>(System.Enum? @enum)
    where TParameterValue : DiGi.Core.Parameter.Classes.ParameterValue;

Type parameters

TParameterValue

The type of the parameter value.

Parameters

enum System.Enum

The enumeration for which to retrieve the parameter value.

Returns

TParameterValue
The parameter value associated with the specified enumeration, or null if not found.

Query.Read(this AccessType) Method

Determines whether the specified access type allows read operations.

public static bool Read(this DiGi.Core.Parameter.Enums.AccessType accessType);

Parameters

accessType AccessType

The access type to check for read permissions.

Returns

System.Boolean
True if the access type allows read operations; otherwise, false.

Query.Types(Enum) Method

Retrieves the types associated with the specified enumeration.

public static System.Type[]? Types(System.Enum? @enum);

Parameters

enum System.Enum

The enumeration to retrieve types for.

Returns

System.Type[]
An array of System.Type objects associated with the specified enumeration, or null.

Query.Write(this AccessType) Method

Determines whether the specified access type allows write operations.

public static bool Write(this DiGi.Core.Parameter.Enums.AccessType accessType);

Parameters

accessType AccessType

The access type to evaluate.

Returns

System.Boolean
True if the specified access type allows write operations; otherwise, false.

Clone this wiki locally