public override bool Equals(object obj) { TWindowEnum tmp = obj as TWindowEnum; if (tmp == null) { return(false); } return(tmp.value == this.value); }
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); }