@@ -140,21 +140,21 @@ void CompositeFormatMethods()
140
140
var format = CompositeFormat . Parse ( "}" ) ; // $ Alert
141
141
142
142
// GOOD: Format is invalid and this flagged during parsing.
143
- String . Format < string > ( null , format , "" ) ;
144
- String . Format < string , string > ( null , format , "" , "" ) ;
145
- String . Format < string , string , string > ( null , format , "" , "" , "" ) ;
143
+ String . Format < string > ( null , format , "" ) ; // $ Sink
144
+ String . Format < string , string > ( null , format , "" , "" ) ; // $ Sink
145
+ String . Format < string , string , string > ( null , format , "" , "" , "" ) ; // $ Sink
146
146
147
- sb . AppendFormat ( null , format , "" ) ;
148
- sb . AppendFormat < string > ( null , format , "" ) ;
149
- sb . AppendFormat < string , string > ( null , format , "" , "" ) ;
150
- sb . AppendFormat < string , string , string > ( null , format , "" , "" , "" ) ;
147
+ sb . AppendFormat ( null , format , "" ) ; // $ Sink
148
+ sb . AppendFormat < string > ( null , format , "" ) ; // $ Sink
149
+ sb . AppendFormat < string , string > ( null , format , "" , "" ) ; // $ Sink
150
+ sb . AppendFormat < string , string , string > ( null , format , "" , "" , "" ) ; // $ Sink
151
151
152
152
153
153
var span = new Span < char > ( ) ;
154
- span . TryWrite ( null , format , out _ ) ;
155
- span . TryWrite < object > ( null , format , out _ , new object ( ) ) ;
156
- span . TryWrite < object , object > ( null , format , out _ , new object ( ) , new object ( ) ) ;
157
- span . TryWrite < object , object , object > ( null , format , out _ , "" , "" , "" ) ;
154
+ span . TryWrite ( null , format , out _ ) ; // $ Sink
155
+ span . TryWrite < object > ( null , format , out _ , new object ( ) ) ; // $ Sink
156
+ span . TryWrite < object , object > ( null , format , out _ , new object ( ) , new object ( ) ) ; // $ Sink
157
+ span . TryWrite < object , object , object > ( null , format , out _ , "" , "" , "" ) ; // $ Sink
158
158
}
159
159
160
160
System . IO . StringWriter sw ;
0 commit comments