public override object ChangeType(object value, Type type, CultureInfo culture) { if (value is IValue) { return(ContextValuesMarshaller.ConvertParam((IValue)value, type)); } return(Type.DefaultBinder.ChangeType(value, type, culture)); }
public int GetHashCode(IValue obj) { object CLR_obj; try { CLR_obj = ContextValuesMarshaller.ConvertToCLRObject(obj); } catch (ValueMarshallingException) { CLR_obj = obj; } return(CLR_obj.GetHashCode()); }
public int GetHashCode(IValue obj) { object CLR_obj; if (obj.DataType == DataType.Undefined) { return(obj.GetHashCode()); } try { CLR_obj = ContextValuesMarshaller.ConvertToCLRObject(obj); } catch (ValueMarshallingException) { CLR_obj = obj; } return(CLR_obj.GetHashCode()); }
public int GetHashCode(IValue obj) { var CLR_obj = ContextValuesMarshaller.ConvertToCLRObject(obj); return(CLR_obj.GetHashCode()); }