@@ -230,71 +230,71 @@ FormRecognizerClient recognizerClient = AuthenticateClient();
230
230
if (invoice .Fields .TryGetValue (" InvoiceId" , out invoiceIdField )) {
231
231
if (invoiceIdField .Value .ValueType == FieldValueType .String ) {
232
232
string invoiceId = invoiceIdField .Value .AsString ();
233
- Console .WriteLine ($ " Invoice Id: '{invoiceId}', with confidence {invoiceIdField.Confidence}" );
233
+ Console .WriteLine ($" Invoice Id: '{invoiceId }', with confidence {invoiceIdField .Confidence }" );
234
234
}
235
235
}
236
236
237
237
FormField invoiceDateField ;
238
238
if (invoice .Fields .TryGetValue (" InvoiceDate" , out invoiceDateField )) {
239
239
if (invoiceDateField .Value .ValueType == FieldValueType .Date ) {
240
240
DateTime invoiceDate = invoiceDateField .Value .AsDate ();
241
- Console .WriteLine ($ " Invoice Date: '{invoiceDate}', with confidence {invoiceDateField.Confidence}" );
241
+ Console .WriteLine ($" Invoice Date: '{invoiceDate }', with confidence {invoiceDateField .Confidence }" );
242
242
}
243
243
}
244
244
245
245
FormField dueDateField ;
246
246
if (invoice .Fields .TryGetValue (" DueDate" , out dueDateField )) {
247
247
if (dueDateField .Value .ValueType == FieldValueType .Date ) {
248
248
DateTime dueDate = dueDateField .Value .AsDate ();
249
- Console .WriteLine ($ " Due Date: '{dueDate}', with confidence {dueDateField.Confidence}" );
249
+ Console .WriteLine ($" Due Date: '{dueDate }', with confidence {dueDateField .Confidence }" );
250
250
}
251
251
}
252
252
253
253
FormField vendorNameField ;
254
254
if (invoice .Fields .TryGetValue (" VendorName" , out vendorNameField )) {
255
255
if (vendorNameField .Value .ValueType == FieldValueType .String ) {
256
256
string vendorName = vendorNameField .Value .AsString ();
257
- Console .WriteLine ($ " Vendor Name: '{vendorName}', with confidence {vendorNameField.Confidence}" );
257
+ Console .WriteLine ($" Vendor Name: '{vendorName }', with confidence {vendorNameField .Confidence }" );
258
258
}
259
259
}
260
260
261
261
FormField vendorAddressField ;
262
262
if (invoice .Fields .TryGetValue (" VendorAddress" , out vendorAddressField )) {
263
263
if (vendorAddressField .Value .ValueType == FieldValueType .String ) {
264
264
string vendorAddress = vendorAddressField .Value .AsString ();
265
- Console .WriteLine ($ " Vendor Address: '{vendorAddress}', with confidence {vendorAddressField.Confidence}" );
265
+ Console .WriteLine ($" Vendor Address: '{vendorAddress }', with confidence {vendorAddressField .Confidence }" );
266
266
}
267
267
}
268
268
269
269
FormField customerNameField ;
270
270
if (invoice .Fields .TryGetValue (" CustomerName" , out customerNameField )) {
271
271
if (customerNameField .Value .ValueType == FieldValueType .String ) {
272
272
string customerName = customerNameField .Value .AsString ();
273
- Console .WriteLine ($ " Customer Name: '{customerName}', with confidence {customerNameField.Confidence}" );
273
+ Console .WriteLine ($" Customer Name: '{customerName }', with confidence {customerNameField .Confidence }" );
274
274
}
275
275
}
276
276
277
277
FormField customerAddressField ;
278
278
if (invoice .Fields .TryGetValue (" CustomerAddress" , out customerAddressField )) {
279
279
if (customerAddressField .Value .ValueType == FieldValueType .String ) {
280
280
string customerAddress = customerAddressField .Value .AsString ();
281
- Console .WriteLine ($ " Customer Address: '{customerAddress}', with confidence {customerAddressField.Confidence}" );
281
+ Console .WriteLine ($" Customer Address: '{customerAddress }', with confidence {customerAddressField .Confidence }" );
282
282
}
283
283
}
284
284
285
285
FormField customerAddressRecipientField ;
286
286
if (invoice .Fields .TryGetValue (" CustomerAddressRecipient" , out customerAddressRecipientField )) {
287
287
if (customerAddressRecipientField .Value .ValueType == FieldValueType .String ) {
288
288
string customerAddressRecipient = customerAddressRecipientField .Value .AsString ();
289
- Console .WriteLine ($ " Customer address recipient: '{customerAddressRecipient}', with confidence {customerAddressRecipientField.Confidence}" );
289
+ Console .WriteLine ($" Customer address recipient: '{customerAddressRecipient }', with confidence {customerAddressRecipientField .Confidence }" );
290
290
}
291
291
}
292
292
293
293
FormField invoiceTotalField ;
294
294
if (invoice .Fields .TryGetValue (" InvoiceTotal" , out invoiceTotalField )) {
295
295
if (invoiceTotalField .Value .ValueType == FieldValueType .Float ) {
296
296
float invoiceTotal = invoiceTotalField .Value .AsFloat ();
297
- Console .WriteLine ($ " Invoice Total: '{invoiceTotal}', with confidence {invoiceTotalField.Confidence}" );
297
+ Console .WriteLine ($" Invoice Total: '{invoiceTotal }', with confidence {invoiceTotalField .Confidence }" );
298
298
}
299
299
}
300
300
}
@@ -318,4 +318,4 @@ Congratulations! In this quickstart, you used the Form Recognizer C# SDK to anal
318
318
> [ REST API v2.1 reference documentation] ( https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1/operations/5ed8c9843c2794cbb1a96291 )
319
319
320
320
> [ !div class="nextstepaction"]
321
- > [ Form Recognizer C#/.NET reference library] ( /dotnet/api/overview/azure/AI.FormRecognizer-readme )
321
+ > [ Form Recognizer C#/.NET reference library] ( /dotnet/api/overview/azure/AI.FormRecognizer-readme )
0 commit comments