Ejemplo n.º 1
0
        private static HashSet <tPort> toEasyPort(schemas.tPort[] items)
        {
            HashSet <tPort> ret = new HashSet <tPort>();

            if (items == null)
            {
                return(ret);
            }
            for (int i = 0; i < items.Length; i++)
            {
                tPort x = new tPort();
                x.Any           = ConvertTo.toEasyAny(items[i].Any);
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.name          = items[i].name;
                x.binding       = ConvertTo.toBindingType(items[i].binding);

                ret.Add(x);
            }
            return(ret);
        }
Ejemplo n.º 2
0
        private static HashSet<tPort> toEasyPort(schemas.tPort[] items)
        {
            HashSet<tPort> ret = new HashSet<tPort>();
            if (items == null)
                return ret;
            for (int i = 0; i < items.Length; i++)
            {
                tPort x = new tPort();
                x.Any = ConvertTo.toEasyAny(items[i].Any);
                x.documentation = ConvertTo.toEasyDocumentation(items[i].documentation);
                x.name = items[i].name;
                x.binding = ConvertTo.toBindingType(items[i].binding);

                ret.Add(x);
            }
            return ret;
        }