public override bool Equals(object obj) { TMgrEnum tmp = obj as TMgrEnum; if (tmp == null) { return(false); } return(tmp.value == this.value); }
public static TMgrEnum[] GetAllEnum() { if (mTables == null) { return(null); } int index = 0; TMgrEnum[] tmps = new TMgrEnum[mTables.Count]; var tmp = mTables.GetEnumerator(); while (tmp.MoveNext()) { tmps[index++] = tmp.Current.Value; } tmp.Dispose(); return(tmps); }