コード例 #1
0
ファイル: ArffAttribute.cs プロジェクト: chausner/ArffTools
 /// <summary>
 /// Returns a string representation of this instance.
 /// </summary>
 /// <returns>The string representation of the current object.</returns>
 public override string ToString()
 {
     if (DateFormat == DefaultDateFormat)
     {
         return("date");
     }
     else
     {
         return("date " + ArffWriter.QuoteAndEscape(DateFormat));
     }
 }
コード例 #2
0
ファイル: ArffAttribute.cs プロジェクト: chausner/ArffTools
 /// <summary>
 /// Returns a string representation of this instance.
 /// </summary>
 /// <returns>The string representation of the current object.</returns>
 public override string ToString()
 {
     return($"@attribute {ArffWriter.QuoteAndEscape(Name)} {Type}");
 }
コード例 #3
0
ファイル: ArffHeader.cs プロジェクト: chausner/ArffTools
 /// <summary>
 /// Returns a string representation of this instance.
 /// </summary>
 /// <returns>The string representation of the current object.</returns>
 public override string ToString()
 {
     return($"@relation {ArffWriter.QuoteAndEscape(RelationName)} ({Attributes.Count} attribute{(Attributes.Count == 1 ? "" : "s")})");
 }