System.SByte.Equals C# (CSharp) Method

Equals() public method

public Equals ( sbyte obj ) : bool
obj sbyte
return bool
        public bool Equals(sbyte obj)
        {
            return Equals((object)obj);
        }

Same methods

SByte::Equals ( object obj ) : bool

Usage Example

Esempio n. 1
0
        static StackObject *Equals_4(ILIntepreter __intp, StackObject *__esp, List <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.SByte obj = (sbyte)ptr_of_this_method->Value;
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.SByte instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);

            var result_of_this_method = instance_of_this_method.Equals(obj);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }