Class SafePetriNetConverter
Converter for SafePetriNet type
Inheritance
SafePetriNetConverter
Assembly: Xareus.Scenarios.dll
Syntax
[TypeConverterFor(typeof(SafePetriNet))]
public class SafePetriNetConverter : TypeConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Returns
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Returns
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Convert from StateMachine to a SafePetriNet
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Returns
Overrides
ConvertStateMachineToSafePetriNet(StateMachine)
Performs the conversion from StateMachine to SafePetriNet
Declaration
public static SafePetriNet ConvertStateMachineToSafePetriNet(StateMachine stateMachine)
Parameters
Returns
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Convert from a SafePetriNet to a StateMachine
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Returns
Overrides