public static string ToStringFormatted(this int input) { string result = string.Empty; result = input.ToString("N", BaseHelper.GetDefaultNumberIntFormatInfo()); return(result); }
public static string ToStringFormatted(this int?input) { string result = string.Empty; if (input.HasValue) { result = input.Value.ToString("N", BaseHelper.GetDefaultNumberIntFormatInfo()); } return(result); }