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

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

            int index = 0;

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

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