NameToValueT Class

This is used to map a property or parameter name string to an enumerated value or integer value

Definition

Namespace: EWSoftware.PDI.Parser
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public class NameToValue<T>
where T : struct, new()
Inheritance
Object    NameToValueT

Type Parameters

T
The enumerated type used for the mapping

Remarks

The parsers can create an array of these to convert the strings to a property type or parameter type and then create the property object and assign it to the PDI object or set the parameter value based on the item found.

Constructors

NameToValueT(String, T) Use this constructor to create an instance that maps a name to a property name rather than a value
NameToValueT(String, T, Boolean) Use this constructor to create an instance that maps a name to a value that is a parameter value

Properties

EnumValue This is used to get the property or parameter type value
IsParameterValue This is used when mapping parameter names and values. It can be used to specify that this item is a parameter value rather than a parameter name.
Name This is used to get the property or parameter name string

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsMatch This can be called to see if a string matches the instance's name
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also