Example #1
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 #2
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());
        }