Skip to content

BizArk.Core.Extensions.FormatExt

Brian Brewder edited this page Apr 1, 2017 · 1 revision

Back to BizArk.Core API Reference

Provides extension methods to format values.

Static Methods

  • public static string Fmt(this string format, params object[] args) - Formats a string. Although string interpolation handles most cases now, this is useful if the format string is loaded at runtime.
  • public static string Fmt(this short val) - Formats a numeric value.
  • public static string Fmt(this short? val) - Formats a numeric value.
  • public static string Fmt(this int val) - Formats a numeric value.
  • public static string Fmt(this int? val) - Formats a numeric value.
  • public static string Fmt(this long val) - Formats a numeric value.
  • public static string Fmt(this long? val) - Formats a numeric value.
  • public static string Fmt(this decimal val, int precision = -1) - Formats a numeric value.
  • public static string Fmt(this decimal? val, int precision = -1) - Formats a numeric value.
  • public static string Fmt(this float val, int precision = -1) - Formats a numeric value.
  • public static string Fmt(this float? val, int precision = -1) - Formats a numeric value.
  • public static string Fmt(this double val, int precision = -1) - Formats a numeric value.
  • public static string Fmt(this double? val, int precision = -1) - Formats a numeric value.
  • public static string FmtCurrency(this decimal val, int precision = -1) - Formats a currency value.
  • public static string FmtCurrency(this decimal? val, int precision = -1) - Formats a currency value.
  • public static string Tmpl(this string template, object values) - Uses a StringTemplate to replace the values in the string. See StringTemplate.

Clone this wiki locally