public GlobalStringListProtocol(IGlobalStringList gbstList)
 {
     this.AdditionalInfo = gbstList.AdditionalInfo;
     this.DefaultElement = new GlobalStringElementProtocol( gbstList.DefaultElement );
     this.Elements = GlobalStringElementProtocol.ConvertCollection( gbstList.Elements );
     this.ListID = gbstList.ListID;
     this.ListID = gbstList.LocaleID;
     this.ObjectID = gbstList.ObjectID;
     this.Title = gbstList.Title;
 }
 public GlobalStringListProtocol(IGlobalStringList gbstList)
 {
     this.AdditionalInfo = gbstList.AdditionalInfo;
     this.DefaultElement = new GlobalStringElementProtocol(gbstList.DefaultElement);
     this.Elements       = GlobalStringElementProtocol.ConvertCollection(gbstList.Elements);
     this.ListID         = gbstList.ListID;
     this.ListID         = gbstList.LocaleID;
     this.ObjectID       = gbstList.ObjectID;
     this.Title          = gbstList.Title;
 }
        public static GlobalStringElementProtocol[] ConvertCollection(IGlobalStringElementCollection gbstElements)
        {
            var protoGbstElems = new GlobalStringElementProtocol[gbstElements.Count];

            int i = 0;
            foreach(IGlobalStringElement elem in gbstElements)
            {
                protoGbstElems[i] = new GlobalStringElementProtocol( elem );
                i++;
            }

            return protoGbstElems;
        }
Exemplo n.º 4
0
        public static GlobalStringElementProtocol[] ConvertCollection(IGlobalStringElementCollection gbstElements)
        {
            var protoGbstElems = new GlobalStringElementProtocol[gbstElements.Count];

            int i = 0;

            foreach (IGlobalStringElement elem in gbstElements)
            {
                protoGbstElems[i] = new GlobalStringElementProtocol(elem);
                i++;
            }

            return(protoGbstElems);
        }