System.Xml.XmlConvert.TryToChar C# (CSharp) Méthode

TryToChar() static private méthode

static private TryToChar ( string s, Char &result ) : Exception
s string
result Char
Résultat System.Exception
        internal static Exception TryToChar(string s, out Char result)
        {
            if (!Char.TryParse(s, out result))
            {
                return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Char"));
            }
            return null;
        }