/// <summary> /// This function returns a String with each property and value in the class. The String displays the property name, property friendly name and property value. /// </summary> /// <param name="delimiter">What delimiter do you want between each property. Defaults to comma. Could use Envoirnment.NewLine, etc.</param> /// <param name="sortByProperytName">Normally sorts the output by property name.</param> /// <returns>String</returns> public String ToClassString(String delimiter = GlobalConstants.STRING_DEFAULT_DELIMITER, SortByPropertyName sortByProperytName = SortByPropertyName.Yes) { return(ClassMessageCreationHelper.ClassToString(this, delimiter, sortByProperytName)); }
/// <summary> /// Builds up a String containing each property and value in the class. The String displays the property name, property friendly name and property value. /// </summary> /// <param name="delimiter">What delimiter do you want between each property? Defaults to comma; can pass others like Environment.NewLine, etc.</param> /// <param name="sortByPropertyName">If set to <c>SortByPropertyName.Yes</c> then output will be sorted by AuditAttribute.AuditSequence and then property name; otherwise no additional sorting is performed and properties; will be left in ordinal order.</param> /// <returns>A String containing each property name, friendly name and value, separated by the delimiter and optionally sorted by property name.</returns> public String ToClassString(String delimiter = GlobalConstants.DefaultDelimiter, SortByPropertyName sortByPropertyName = SortByPropertyName.Yes) { return(ClassMessageCreationHelper.ClassToString(this, delimiter, sortByPropertyName)); }