コード例 #1
0
ファイル: KChar.cs プロジェクト: jowie94/Kermit
        public int CompareTo(object obj)
        {
            KChar ch = obj as KChar;

            if (ch != null)
            {
                return(Value.CompareTo(ch.Value));
            }
            ThrowHelper.TypeError("Object is not of type KChar");
            return(0);
        }
コード例 #2
0
ファイル: KChar.cs プロジェクト: jowie94/Kermit
 private bool Equals(KChar other)
 {
     return(Value == other.Value);
 }