Assembly: OptimaJet.Workflow.Core

Class ParsedType

OptimaJet.Workflow.Core.Designer.ParsedType

Represents the parsed components of a CLR Type name, including generic arguments, array ranks, and nullable value-type syntax.

public class ParsedType

Constructors

public ParsedType() #

Initializes a new instance of the ParsedType class with empty ParsedType.ArrayDimensions and ParsedType.TypeArguments collections.

Methods

public Type ConvertToType() #

Resolves this parsed type description to a CLR Type.

Returns

Type
Description
Type
The resolved Type, or null when a non-generic type cannot be resolved.

public static string GetFriendlyName(Type type) #

Formats a CLR Type using the type-name syntax consumed by ParsedType.Parse(string).

Parameters

Name
Type
Description
type
Type
The Type to format.

Returns

Type
Description
String
A type name that preserves generic arguments, nullable value types, and array ranks.

public static ParsedType Parse(string name) #

Parses a CLR type name into its component representation.

Parameters

Name
Type
Description
name
String
The type name to parse. The syntax supports angle-bracketed generic arguments, nullable suffixes (?), and array-rank specifiers.

Returns

Type
Description
ParsedType
A ParsedType containing the parsed type-name components.

Exceptions

Type
Description
Exception
A generic argument list is missing its closing delimiter, or an array specifier contains an invalid character.

Fields

public string Name #

The CLR type name without generic arguments, array specifiers, or a nullable suffix.

public bool IsGeneric #

Indicates whether the parsed type has a generic argument list.

public List<ParsedType.ArrayDimension> ArrayDimensions #

The ParsedType.ArrayDimension entries for the parsed array specifiers, in declaration order.

public List<ParsedType> TypeArguments #

The ParsedType instances for the generic arguments, in declaration order.

public bool IsNullable #

Indicates whether the parsed type name includes a nullable suffix (?).

Nested Types

public class ParsedType.ArrayDimension #

Represents an array specifier and its rank within a ParsedType.
View ParsedType.ArrayDimension