File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -70,23 +70,27 @@ public string ToString(IType[] types, object[] values)
70
70
}
71
71
72
72
public string ToString ( IDictionary < string , TypedValue > namedTypedValues )
73
- {
74
- return ToString ( namedTypedValues . AsEnumerable ( ) ) ;
75
- }
76
-
77
- internal string ToString ( IEnumerable < KeyValuePair < string , TypedValue > > namedTypedValues )
78
73
{
79
74
IDictionary < string , string > result = new Dictionary < string , string > ( namedTypedValues . Count ( ) ) ;
80
75
81
- foreach ( var me in namedTypedValues )
76
+ foreach ( KeyValuePair < string , TypedValue > me in namedTypedValues )
82
77
{
83
- var tv = me . Value ;
78
+ TypedValue tv = me . Value ;
84
79
result [ me . Key ] = tv . Type . ToLoggableString ( tv . Value , _factory ) ;
85
80
}
86
81
87
82
return CollectionPrinter . ToString ( result ) ;
88
83
}
89
84
85
+ internal string ToString ( IEnumerable < KeyValuePair < string , TypedValue > > namedTypedValues )
86
+ {
87
+ return CollectionPrinter . ToString (
88
+ namedTypedValues . Select (
89
+ ntv => new KeyValuePair < string , string > (
90
+ ntv . Key ,
91
+ ntv . Value . Type . ToLoggableString ( ntv . Value . Value , _factory ) ) ) ) ;
92
+ }
93
+
90
94
public void ToString ( object [ ] entities )
91
95
{
92
96
if ( ! log . IsDebugEnabled ( ) || entities . Length == 0 )
You can’t perform that action at this time.
0 commit comments