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.
Namespace: OptimaJet.Workflow.Core.Designer
public class ParsedTypeConstructors
public ParsedType() #Initializes a new instance of the ParsedType class with empty ParsedType.ArrayDimensions and ParsedType.TypeArguments collections.
Methods
public static string GetFriendlyName(Type type) #Formats a CLR Type using the type-name syntax consumed by ParsedType.Parse(string).
Parameters
Name
Type
Description
Returns
Type
Description
StringA 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
nameStringThe type name to parse. The syntax supports angle-bracketed generic arguments, nullable suffixes (
?), and array-rank specifiers.Returns
Type
Description
ParsedTypeA ParsedType containing the parsed type-name components.
Exceptions
Type
Description
ExceptionA 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