Exemplo n.º 1
0
        private void AddToMetadata(MetadataType metadataType, string line)
        {
            var metadataList   = SharepointStringDeserializer.Deserialize(line, metadataType);
            var aggregatedList = metadataList.Select(Aggregator.AggregateMetadata).ToList();

            Metadata.Add(new KeyValuePair <MetadataType, IList <IMetadata> >(metadataType, aggregatedList));
        }
Exemplo n.º 2
0
        private void AddToMetadata(string metadataType, string line)
        {
            var metadataList   = SharepointStringDeserializer.Deserialize(line, MetadataType.Get(metadataType));
            var aggregatedList = Aggregator == null?metadataList.ToList() : metadataList.Select(Aggregator.AggregateMetadata).ToList();

            aggregatedList.ForEach(m =>
            {
                if (!Metadata.ContainsKey(m.Type))
                {
                    Metadata[m.Type] = new SortedSet <IMetadata>(new MetadataComparer());
                }
                Metadata[m.Type].Add(m);
            });
        }