Skip to content

Commit 80baf84

Browse files
Update Program.cs
1 parent aae2215 commit 80baf84

File tree

1 file changed

+11
-3
lines changed
  • Form-Fields/Read-JSON-data-set-values-in-form-fields/.NET/Read-JSON-data-set-values-in-form-fields

1 file changed

+11
-3
lines changed

Form-Fields/Read-JSON-data-set-values-in-form-fields/.NET/Read-JSON-data-set-values-in-form-fields/Program.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.IO;
33
using Newtonsoft.Json;
44
using Syncfusion.DocIO;
@@ -45,7 +45,9 @@ static void Main(string[] args)
4545
}
4646
}
4747
}
48-
48+
/// <summary>
49+
/// Adds a labeled text form field to the specified section.
50+
/// </summary>
4951
private static void AddTextFormField(IWSection section, string label, string value)
5052
{
5153
WParagraph paragraph = section.AddParagraph() as WParagraph;
@@ -61,6 +63,10 @@ private static void AddTextFormField(IWSection section, string label, string val
6163
section.AddParagraph();
6264
}
6365
}
66+
67+
/// <summary>
68+
/// Represents report data with employee details.
69+
/// </summary>
6470
public class Reports
6571
{
6672
[JsonProperty("EmployeeID")] public string EmployeeID { get; set; }
@@ -69,7 +75,9 @@ public class Reports
6975
[JsonProperty("Location")] public string Location { get; set; }
7076

7177
}
72-
78+
/// <summary>
79+
/// Root object for deserializing JSON data.
80+
/// </summary>
7381
public class Root
7482
{
7583
[JsonProperty("Reports")] public List<Reports> Reports { get; set; }

0 commit comments

Comments
 (0)