Beispiel #1
0
        /// <inheritdoc/>
        public ICell NewGenericCell(string cellType, string content)
        {
            CellType type;

            if (!StorageSchema.cellTypeLookupTable.TryGetValue(cellType, out type))
            {
                Throw.invalid_cell_type();
            }
            switch (type)
            {
            case global::Trinity.Client.TestProtocols.CellType.TripleStore:
                return(TripleStore.Parse(content));
            }
            /* Should not reach here */
            return(null);
        }