public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { object value = untypedValue.Value; if (value is byte[]) { return((ITypedValue)Variables.ByteArrayValue((byte[])value)); } else { byte[] data = IoUtil.ReadInputStream((System.IO.Stream)value, null); return((ITypedValue)Variables.ByteArrayValue(data)); } }
public virtual BytesValue convertToTypedValue(UntypedValueImpl untypedValue) { object value = untypedValue.Value; if (value is sbyte[]) { return(Variables.byteArrayValue((sbyte[])value, untypedValue.Transient)); } else { sbyte[] data = IoUtil.readInputStream((Stream)value, null); return(Variables.byteArrayValue(data, untypedValue.Transient)); } }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.DoubleValue((double?)untypedValue.Value)); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(NullValueImpl.Instance); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.StringValue((string)untypedValue.Value)); }
public virtual ShortValue convertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.shortValue((short?)untypedValue.Value, untypedValue.Transient)); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { throw new NotSupportedException("Currently no automatic conversation from UntypedValue to FileValue"); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.BooleanValue((bool?)untypedValue.Value)); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { // untyped values are always deserialized return((ITypedValue)Variables.ObjectValue(untypedValue.Value).Create()); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return((ITypedValue)Variables.DateValue((DateTime)untypedValue.Value)); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.IntegerValue((int?)untypedValue.Value)); }
public virtual DateValue convertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.dateValue((DateTime)untypedValue.Value, untypedValue.Transient)); }
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.LongValue((long?)untypedValue.Value)); }
public virtual IntegerValue convertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.integerValue((int?)untypedValue.Value, untypedValue.Transient)); }
public virtual void SetVariableLocal(string variableName, object value) { ITypedValue typedValue = new UntypedValueImpl(value); SetVariableLocal(variableName, typedValue, SourceActivityVariableScope); }
public abstract ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue);
public override ITypedValue ConvertToTypedValue(UntypedValueImpl untypedValue) { return(Variables.ShortValue((short?)untypedValue.Value)); }