Evernote.EDAM.Type.Note.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public override string ToString() {
      StringBuilder sb = new StringBuilder("Note(");
      sb.Append("Guid: ");
      sb.Append(Guid);
      sb.Append(",Title: ");
      sb.Append(Title);
      sb.Append(",Content: ");
      sb.Append(Content);
      sb.Append(",ContentHash: ");
      sb.Append(ContentHash);
      sb.Append(",ContentLength: ");
      sb.Append(ContentLength);
      sb.Append(",Created: ");
      sb.Append(Created);
      sb.Append(",Updated: ");
      sb.Append(Updated);
      sb.Append(",Deleted: ");
      sb.Append(Deleted);
      sb.Append(",Active: ");
      sb.Append(Active);
      sb.Append(",UpdateSequenceNum: ");
      sb.Append(UpdateSequenceNum);
      sb.Append(",NotebookGuid: ");
      sb.Append(NotebookGuid);
      sb.Append(",TagGuids: ");
      sb.Append(TagGuids);
      sb.Append(",Resources: ");
      sb.Append(Resources);
      sb.Append(",Attributes: ");
      sb.Append(Attributes== null ? "<null>" : Attributes.ToString());
      sb.Append(",TagNames: ");
      sb.Append(TagNames);
      sb.Append(")");
      return sb.ToString();
    }

Usage Example

 /// <summary>
 /// ノート本文の内容を出力する。
 /// </summary>
 /// <param name="note"></param>
 private void WriteNote(Note note)
 {
     Console.WriteLine("Title: " + note.Title);
     Console.WriteLine("GUID: " + note.Guid);
     Console.WriteLine("Content: " + note.Content);
     Console.WriteLine("ToString: " + note.ToString());
 }