private string ConvertToString(string format, IFormatProvider provider) { string str; if (!XFontWeights.FontWeightToString(Weight, out str)) { return(Weight.ToString(provider)); } return(str); }
internal string ConvertToString(string format, IFormatProvider provider) { provider = provider ?? CultureInfo.InvariantCulture; string str; if (!XFontWeights.FontWeightToString(Weight, out str)) { return(Weight.ToString(format, provider)); } return(str); }