예제 #1
0
            public IMap Add(JwtMember value)
            {
                IMap map;

                if (value.Name.Equals(_value1.Name))
                {
                    map = new TwoElementMap(value, _value2);
                }
                else if (value.Name.Equals(_value2.Name))
                {
                    map = new TwoElementMap(_value1, value);
                }
                else
                {
                    map = new ThreeElementMap(_value1, _value2, value);
                }

                return(map);
            }
예제 #2
0
 internal ObjectEnumerator(TwoElementMap map)
 {
     _map     = map;
     _counter = 0;
 }