Example #1
0
        public override bool Equals(object obj)
        {
            TUIEnum tmp = obj as TUIEnum;

            if (tmp == null)
            {
                return(false);
            }
            return(tmp.value == this.value);
        }
Example #2
0
        public static TUIEnum[] GetAllEnum()
        {
            if (mTables == null)
            {
                return(null);
            }

            int index = 0;

            TUIEnum[] tmps = new TUIEnum[mTables.Count];
            var       tmp  = mTables.GetEnumerator();

            while (tmp.MoveNext())
            {
                tmps[index++] = tmp.Current.Value;
            }
            tmp.Dispose();
            return(tmps);
        }