Exemplo n.º 1
0
        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;
 }
Exemplo n.º 4
0
            public object GetRealObject(StreamingContext context)

            {
                return(PrefForward.GetByName(this.name));
            }