Example #1
0
 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));
 }
Example #2
0
        public int GetHashCode(IValue obj)
        {
            object CLR_obj;

            try
            {
                CLR_obj = ContextValuesMarshaller.ConvertToCLRObject(obj);
            }
            catch (ValueMarshallingException)
            {
                CLR_obj = obj;
            }

            return(CLR_obj.GetHashCode());
        }
Example #3
0
        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());
        }
Example #4
0
        public int GetHashCode(IValue obj)
        {
            var CLR_obj = ContextValuesMarshaller.ConvertToCLRObject(obj);

            return(CLR_obj.GetHashCode());
        }