Exemplo n.º 1
0
        private MxmlNamespace[] ReadNamespaces()
        {
            var data      = Value.Split('\n');
            int entriesNo = data.Length;

            if (entriesNo < 2)
            {
                return(null);
            }
            var namespaces = new MxmlNamespace[entriesNo / 2];
            int j          = 0;

            for (int i = 0; i < entriesNo; i += 2)
            {
                namespaces[j++] = new MxmlNamespace {
                    Uri = data[i], Manifest = data[i + 1]
                }
            }
            ;

            return(namespaces);
        }
    }
Exemplo n.º 2
0
        private MxmlNamespace[] ReadNamespaces()
        {
            var data = Value.Split('\n');
            int entriesNo = data.Length;
            if (entriesNo < 2) return null;
            var namespaces = new MxmlNamespace[entriesNo / 2];
            int j = 0;
            for (int i = 0; i < entriesNo; i += 2)
                namespaces[j++] = new MxmlNamespace {Uri = data[i], Manifest = data[i + 1]};

            return namespaces;
        }