GeneralFormat.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace FastReport.Format
  5. {
  6. /// <summary>
  7. /// Represents a format used to display values with no formatting.
  8. /// </summary>
  9. public class GeneralFormat : FormatBase
  10. {
  11. #region Public Methods
  12. /// <inheritdoc/>
  13. public override FormatBase Clone()
  14. {
  15. return new GeneralFormat();
  16. }
  17. /// <inheritdoc/>
  18. public override bool Equals(object obj)
  19. {
  20. GeneralFormat f = obj as GeneralFormat;
  21. return f != null;
  22. }
  23. /// <inheritdoc/>
  24. public override int GetHashCode()
  25. {
  26. return base.GetHashCode();
  27. }
  28. /// <inheritdoc/>
  29. public override string FormatValue(object value)
  30. {
  31. if (value != null)
  32. return value.ToString();
  33. return "";
  34. }
  35. internal override string GetSampleValue()
  36. {
  37. return "";
  38. }
  39. #endregion
  40. }
  41. }