@@ -15,7 +15,7 @@ static class CollectionExtensions
1515 /// <param name="collection">集合</param>
1616 /// <param name="format">格式</param>
1717 /// <returns></returns>
18- public static IEnumerable < KeyValuePair < string , string > > FormateAs ( this IEnumerable < KeyValuePair < string , string > > collection , CollectionFormat format )
18+ public static IEnumerable < KeyValuePair < string , string > > FormatAs ( this IEnumerable < KeyValuePair < string , string > > collection , CollectionFormat format )
1919 {
2020 if ( format == CollectionFormat . Multi )
2121 {
@@ -25,16 +25,16 @@ public static IEnumerable<KeyValuePair<string, string>> FormateAs(this IEnumerab
2525 switch ( format )
2626 {
2727 case CollectionFormat . Csv :
28- return collection . FormateAs ( @"," ) ;
28+ return collection . FormatAs ( @"," ) ;
2929
3030 case CollectionFormat . Ssv :
31- return collection . FormateAs ( @" " ) ;
31+ return collection . FormatAs ( @" " ) ;
3232
3333 case CollectionFormat . Tsv :
34- return collection . FormateAs ( @"\" ) ;
34+ return collection . FormatAs ( @"\" ) ;
3535
3636 case CollectionFormat . Pipes :
37- return collection . FormateAs ( @"|" ) ;
37+ return collection . FormatAs ( @"|" ) ;
3838
3939 default :
4040 throw new NotImplementedException ( ) ;
@@ -47,7 +47,7 @@ public static IEnumerable<KeyValuePair<string, string>> FormateAs(this IEnumerab
4747 /// <param name="collection">集合</param>
4848 /// <param name="separator">分隔符</param>
4949 /// <returns></returns>
50- private static IEnumerable < KeyValuePair < string , string > > FormateAs ( this IEnumerable < KeyValuePair < string , string > > collection , string separator )
50+ private static IEnumerable < KeyValuePair < string , string > > FormatAs ( this IEnumerable < KeyValuePair < string , string > > collection , string separator )
5151 {
5252 return collection . GroupBy ( item => item . Key ) . Select ( item =>
5353 {
0 commit comments