Exemplo n.º 1
0
        public bool Equals(Struct that)
        {
            //Weird that @that cannot be used because `that` is already used.
            IStruct @this = this, _that = that as IStruct;

            return(IStructExtensions.EqualsIStruct(ref @this, ref _that));
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            //return base.ToString();

            IStruct @this = this;

            return(IStructExtensions.ToIStructString(ref @this));
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            //return base.GetHashCode();

            IStruct @this = this;

            return(IStructExtensions.GetHashCodeIStruct(ref @this));
        }
Exemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if ((obj is IStruct).Equals(false))
            {
                return(false);
            }

            IStruct @this = this, that = obj as IStruct;

            return(IStructExtensions.EqualsIStruct(ref @this, ref that));
        }