private float getMemory()
 {
     return(AsSystem.getTotalMemory() * 0.000000954f);
 }
Пример #2
0
        public bool Equals(UserType other)
        {
            if (other == null)
            {
                return(false);
            }

            if (IsUser)
            {
                if (other.IsSystem)
                {
                    return(false);
                }

                if ((t as string) != (other.t as string))
                {
                    return(false);
                }
            }
            else
            {
                if (other.IsUser)
                {
                    return(false);
                }

                if (!AsSystem.Equals(other.AsSystem))
                {
                    return(false);
                }
            }

            if (typeargs != null)
            {
                if (other.typeargs == null)
                {
                    return(false);
                }

                if (typeargs.Count != other.typeargs.Count)
                {
                    return(false);
                }

                for (int i = 0; i < typeargs.Count; i++)
                {
                    if (!typeargs[i].Equals(other.typeargs[i]))
                    {
                        return(false);
                    }
                }
            }
            else
            {
                if (other.typeargs != null)
                {
                    return(false);
                }
            }

            return(true);
        }