Skip to content

Commit 77c7e92

Browse files
committed
Addressed the feedback
1 parent 4d887d8 commit 77c7e92

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

  • Mail-Merge/Apply-custom-formatting-mailmerge-fields/.NET/Apply-custom-formatting-mailmerge-fields

Mail-Merge/Apply-custom-formatting-mailmerge-fields/.NET/Apply-custom-formatting-mailmerge-fields/Program.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Syncfusion.DocIO.DLS;
2+
using System.Collections.Generic;
23
using System.Data;
34

45
namespace Apply_custom_formatting_mailmerge_fields
@@ -69,18 +70,18 @@ private static void MergeFieldEvent(object sender, MergeFieldEventArgs args)
6970
/// <param name="numberType">The boolean denotes current changes as Number format</param>
7071
public static void UpdateMergeFieldResult(bool numberType)
7172
{
72-
Dictionary<WParagraph, List<KeyValuePair<int, string>>> tempDictonary;
73+
Dictionary<WParagraph, List<KeyValuePair<int, string>>> mergeFieldResults;
7374
if (numberType)
74-
tempDictonary = paratoModifyNumberFormat;
75+
mergeFieldResults = paratoModifyNumberFormat;
7576
else
76-
tempDictonary = paratoModifyDateFormat;
77+
mergeFieldResults = paratoModifyDateFormat;
7778
// Iterate the outer dictionary entries
78-
foreach (var dictionaryItem in tempDictonary)
79+
foreach (KeyValuePair<WParagraph, List<KeyValuePair<int, string>>> dictionaryItem in mergeFieldResults)
7980
{
8081
// Get the merge field result paragraph
8182
WParagraph mergeFieldParagraph = dictionaryItem.Key;
8283
// The list of (index, fieldValues) pairs for this paragraph.
83-
var fieldList = dictionaryItem.Value;
84+
List<KeyValuePair<int, string>> fieldList = dictionaryItem.Value;
8485
for (int i = 0; i <= fieldList.Count - 1; i++)
8586
{
8687
// Get the index and Field values ("Number" or "Date")

0 commit comments

Comments
 (0)