예제 #1
0
        public static bool Equals(StaticString a, StaticString b)
        {
            //if( a == Null && b == Null ) {
            //	return true;
            //}

            //if( a == Null && b != Null ) {
            //	return false;
            //}

            //if( a != Null && b == Null ) {
            //	return false;
            //}

            int lhs = 0;
            int rhs = 0;

            try {
                lhs = a.m_Hash;
            }
            catch (Exception) {
            }

            try {
                rhs = b.m_Hash;
            }
            catch (Exception) {
            }

            return(lhs == rhs);
        }
예제 #2
0
 public bool     Equals(StaticString rhs)
 {
     return(m_Hash.Equals(rhs.m_Hash));
 }
예제 #3
0
 public static bool Equals(StaticString a, string b)
 {
     return(a.ToString().Equals(b));
 }
예제 #4
0
 public StaticString(StaticString str)
 {
     m_Hash = str.m_Hash;
 }
예제 #5
0
 public static bool operator!=(string a, StaticString b)
 {
     return(!StaticString.Equals(a, b));
 }
예제 #6
0
 public static bool operator!=(StaticString lhs, string rhs)
 {
     return(!StaticString.Equals(lhs, rhs));
 }
예제 #7
0
 public int CompareTo(StaticString rhs)
 {
     return(m_Hash.CompareTo(rhs.m_Hash));
 }
예제 #8
0
 public static bool Equals(string a, StaticString b)
 {
     return(a.Equals(b.ToString()));
 }