Lambda + KeyValuePair Create a new Class

Sample:  


var sourceCode = domainsService.GetDomainValues("SourceCode", "en").Select(m => new KeyValuePair<string, string>(m.ShortCode, m.Value)).ToList();

你可能感兴趣的:(Lambda + KeyValuePair Create a new Class)