Skip to content

Commit 1bdead6

Browse files
authored
Merge pull request #6 from chkp-yaelg/master
change from string interpolation to simple string operation
2 parents b151cdf + 561e4a2 commit 1bdead6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CiscoMigration/CiscoConverter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,12 +1706,12 @@ private void Add_TimeRanges()
17061706
bool isRenamed = false;
17071707
foreach (string periodic in caTime.PeriodicsList)
17081708
{
1709-
string postfixString = $"_{postfixIndex++}";
1709+
string postfixString = "_" + postfixIndex++;
17101710
string cpTimeRangeName = cpTimeRangeNameSrc + postfixString;
17111711

17121712
while (cpTimeRangeName.Length > cpTimeRangeNameLength || cpTimeRangesNamesUniq.Contains(cpTimeRangeName))
17131713
{
1714-
string cpTimeNamePostfixStr = $"_{cpTimeNamePostfixInt}";
1714+
string cpTimeNamePostfixStr = "_" + cpTimeNamePostfixInt;
17151715
cpTimeRangeName = cpTimeRangeNameSrc.Substring(0, cpTimeRangeNameLength - cpTimeNamePostfixStr.Length - postfixString.Length);
17161716
cpTimeRangeName = cpTimeRangeName + cpTimeNamePostfixStr + postfixString;
17171717
isRenamed = true;
@@ -1728,7 +1728,7 @@ private void Add_TimeRanges()
17281728
{
17291729
while (cpTimeRangeNameSrc.Length > cpTimeRangeNameLength || cpTimeRangesNamesUniq.Contains(cpTimeRangeNameSrc))
17301730
{
1731-
string cpTimeNamePostfixStr = $"_{cpTimeNamePostfixInt}";
1731+
string cpTimeNamePostfixStr = "_" + cpTimeNamePostfixInt;
17321732
cpTimeRangeNameSrc = cpTimeRangeNameSrc.Substring(0, cpTimeRangeNameLength - cpTimeNamePostfixStr.Length);
17331733
cpTimeRangeNameSrc = cpTimeRangeNameSrc + cpTimeNamePostfixStr;
17341734
cpTimeNamePostfixInt += 1;
@@ -1754,7 +1754,7 @@ private void Add_TimeRange(int caTimeId, string caTimeRangeName, string cpTimeRa
17541754
new ConversionIncident(
17551755
caTimeId,
17561756
"TITLE: object is renamed",
1757-
$"DESCRIPTION: object renamed from {caTimeRangeName} to {cpTimeRangeName}",
1757+
"DESCRIPTION: object renamed from " + caTimeRangeName + " to " + cpTimeRangeName,
17581758
ConversionIncidentType.Informative));
17591759
}
17601760

0 commit comments

Comments
 (0)