コード例 #1
0
ファイル: DocOpUtil.cs プロジェクト: Stephanvs/Wave.NET
 private static string ToConciseString(IAttributesUpdate update)
 {
     if (update.ChangeSize() == 0)
     {
         return "{}";
     }
     var b = new StringBuilder();
     b.Append("{ ");
     for (int i = 0; i < update.ChangeSize(); ++i)
     {
         if (i > 0)
         {
             b.Append(", ");
         }
         b.Append(update.GetChangeKey(i));
         b.Append(": ");
         b.Append(LiteralString(update.GetOldValue(i)));
         b.Append(" -> ");
         b.Append(LiteralString(update.GetNewValue(i)));
     }
     b.Append(" }");
     return b.ToString();
 }
コード例 #2
0
 public void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     throw new System.NotImplementedException();
 }
コード例 #3
0
 public UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     _attributesUpdate = attributesUpdate;
 }
コード例 #4
0
 public void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     throw new NotSupportedException("UpdateAttributes");
 }
コード例 #5
0
ファイル: DocOpUtil.cs プロジェクト: Stephanvs/Wave.NET
 public void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     _sb.Append("u@ " + ToConciseString(attributesUpdate) + "; ");
 }
コード例 #6
0
ファイル: Composer.cs プロジェクト: Stephanvs/Wave.NET
 public override void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
ファイル: Composer.cs プロジェクト: Stephanvs/Wave.NET
 public UpdateAttributesPostTarget(IAttributesUpdate attributesUpdate)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
ファイル: Composer.cs プロジェクト: Stephanvs/Wave.NET
 public abstract void UpdateAttributes(IAttributesUpdate attributesUpdate);
コード例 #9
0
ファイル: Composer.cs プロジェクト: Stephanvs/Wave.NET
 public override void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     throw new ComposeException("Illegal composition");
 }
コード例 #10
0
ファイル: Composer.cs プロジェクト: Stephanvs/Wave.NET
 public override void UpdateAttributes(IAttributesUpdate attributesUpdate)
 {
     _target = new UpdateAttributesPostTarget(attributesUpdate);
 }