Пример #1
0
 public static List <Extent> ToExtentList(this StringPairList source)
 {
     return(source
            .Select((pair => new Extent {
         Authority = pair.Item1, Value = pair.Item2
     }))
            .ToList());
 }
Пример #2
0
 public static List <MetadataKeyword> ToKeywordList(this StringPairList source)
 {
     return(source
            .Select((pair => new MetadataKeyword {
         Vocab = pair.Item1, Value = pair.Item2
     }))
            .ToList());
 }