Class DefaultTokenUpdateTokenDataConverter
Covnerter for TokenData type that contains a value, variable name and downstream sequences ids
Inherited Members
Namespace: Xareus.Scenarios.Extra.Converters
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[TypeConverterFor(typeof(DefaultTokenUpdate.TokenData))]
public class DefaultTokenUpdateTokenDataConverter : TypeConverter
Fields
DOWNSTREAMSEQUENCE_PARAMETER
Declaration
public const string DOWNSTREAMSEQUENCE_PARAMETER = "downstreamSequences"
Field Value
| Type | Description |
|---|---|
| string |
VALUE_PARAMETER
Declaration
public const string VALUE_PARAMETER = "value"
Field Value
| Type | Description |
|---|---|
| string |
VARIABLE_PARAMETER
Declaration
public const string VARIABLE_PARAMETER = "variable"
Field Value
| Type | Description |
|---|---|
| string |
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
| Type | sourceType | A Type that represents the type you want to convert from. |
Returns
| Type | Description |
|---|---|
| bool | true if this converter can perform the conversion; otherwise, false. |
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
| Type | destinationType | A Type that represents the type you want to convert to. |
Returns
| Type | Description |
|---|---|
| bool | true if this converter can perform the conversion; otherwise, false. |
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Convert from Parameter to TokenData
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | |
| CultureInfo | culture | |
| object | value |
Returns
| Type | Description |
|---|---|
| object |
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Convert from TokenData to Parameter
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | |
| CultureInfo | culture | |
| object | value | |
| Type | destinationType |
Returns
| Type | Description |
|---|---|
| object |