/// <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)); } }
/// <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}"); }
/// <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")})"); }