Newtonsoft.Json.JsonWriter.WriteComment C# (CSharp) Method

WriteComment() public method

Writes a comment /*...*/ containing the specified text.
public WriteComment ( string text ) : void
text string Text to place inside the comment.
return void
        public virtual void WriteComment(string text)
        {
            InternalWriteComment();
        }

Usage Example

コード例 #1
0
ファイル: EpochToDateTime.cs プロジェクト: sqzbx/ffrkx
 public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
 {
     DateTime result = (DateTime)value;
     TimeSpan delta = result.Subtract(mEpoch);
     writer.WriteComment(delta.TotalSeconds.ToString());
 }
All Usage Examples Of Newtonsoft.Json.JsonWriter::WriteComment