Bootstrap响应式设计在中国-关于移动网站和卓越网站体验的那些事儿
// Create a new dictionary of strings, with string keys.//Dictionary<string, string> openWith =new Dictionary<string, string>();// When you use foreach to enumerate dictionary elements,// the elements are retrieved as KeyValuePair objects.Console.WriteLine();foreach( KeyValuePair<string, string> kvp in openWith ){Console.WriteLine("Key = {0}, Value = {1}",kvp.Key, kvp.Value);}// To get the values alone, use the Values property.Dictionary<string, string>.ValueCollection valueColl =openWith.Values;// The elements of the ValueCollection are strongly typed// with the type that was specified for dictionary values.Console.WriteLine();foreach( string s in valueColl ){Console.WriteLine("Value = {0}", s);}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。