Skip to content

Commit 5f0bf33

Browse files
authored
Merge pull request #94104 from anatolip/patch-1
Update csharp.md
2 parents 355899a + 4056fee commit 5f0bf33

File tree

1 file changed

+10
-10
lines changed
  • articles/applied-ai-services/form-recognizer/includes/get-started

1 file changed

+10
-10
lines changed

articles/applied-ai-services/form-recognizer/includes/get-started/csharp.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,71 +230,71 @@ FormRecognizerClient recognizerClient = AuthenticateClient();
230230
if (invoice.Fields.TryGetValue("InvoiceId", out invoiceIdField)) {
231231
if (invoiceIdField.Value.ValueType == FieldValueType.String) {
232232
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}");
234234
}
235235
}
236236

237237
FormField invoiceDateField;
238238
if (invoice.Fields.TryGetValue("InvoiceDate", out invoiceDateField)) {
239239
if (invoiceDateField.Value.ValueType == FieldValueType.Date) {
240240
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}");
242242
}
243243
}
244244

245245
FormField dueDateField;
246246
if (invoice.Fields.TryGetValue("DueDate", out dueDateField)) {
247247
if (dueDateField.Value.ValueType == FieldValueType.Date) {
248248
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}");
250250
}
251251
}
252252

253253
FormField vendorNameField;
254254
if (invoice.Fields.TryGetValue("VendorName", out vendorNameField)) {
255255
if (vendorNameField.Value.ValueType == FieldValueType.String) {
256256
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}");
258258
}
259259
}
260260

261261
FormField vendorAddressField;
262262
if (invoice.Fields.TryGetValue("VendorAddress", out vendorAddressField)) {
263263
if (vendorAddressField.Value.ValueType == FieldValueType.String) {
264264
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}");
266266
}
267267
}
268268

269269
FormField customerNameField;
270270
if (invoice.Fields.TryGetValue("CustomerName", out customerNameField)) {
271271
if (customerNameField.Value.ValueType == FieldValueType.String) {
272272
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}");
274274
}
275275
}
276276

277277
FormField customerAddressField;
278278
if (invoice.Fields.TryGetValue("CustomerAddress", out customerAddressField)) {
279279
if (customerAddressField.Value.ValueType == FieldValueType.String) {
280280
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}");
282282
}
283283
}
284284

285285
FormField customerAddressRecipientField;
286286
if (invoice.Fields.TryGetValue("CustomerAddressRecipient", out customerAddressRecipientField)) {
287287
if (customerAddressRecipientField.Value.ValueType == FieldValueType.String) {
288288
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}");
290290
}
291291
}
292292

293293
FormField invoiceTotalField;
294294
if (invoice.Fields.TryGetValue("InvoiceTotal", out invoiceTotalField)) {
295295
if (invoiceTotalField.Value.ValueType == FieldValueType.Float) {
296296
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}");
298298
}
299299
}
300300
}
@@ -318,4 +318,4 @@ Congratulations! In this quickstart, you used the Form Recognizer C# SDK to anal
318318
> [REST API v2.1 reference documentation](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1/operations/5ed8c9843c2794cbb1a96291)
319319
320320
> [!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

Comments
 (0)