public static PrefForward[] GetList(bool allowDefault) { int i = 0; int c = 2; if (allowDefault) { c++; } PrefForward[] arr = new PrefForward[c]; if (allowDefault) { arr[i++] = Default; } arr[i++] = DontForward; arr[i++] = Custom; return(arr); }
public override bool Equals(object obj) { PrefForward f = obj as PrefForward; if (f != null) { return(this.Name == f.Name); } else { return(base.Equals(obj)); } }
public static PrefForward[] GetList(bool allowDefault) { int i = 0; int c = 2; if (allowDefault) c++; PrefForward[] arr = new PrefForward[c]; if (allowDefault) { arr[i++] = Default; } arr[i++] = DontForward; arr[i++] = Custom; return arr; }
public object GetRealObject(StreamingContext context) { return(PrefForward.GetByName(this.name)); }