コード例 #1
0
 public void GenerateDocIdNew()
 {
     if (DocIdCurrent?.EndsWith("_2") != false)
     {
         DocIdNew = $"{UniqueContentId}_1";
     }
     else
     {
         DocIdNew = $"{UniqueContentId}_2";
     }
 }
コード例 #2
0
 public void GenerateDocIdNew()
 {
     if (DocIdCurrent?.EndsWith("_2", StringComparison.Ordinal) != false)
     {
         DocIdNew = $"{UniqueContentId}_1";
     }
     else
     {
         DocIdNew = $"{UniqueContentId}_2";
     }
 }