コード例 #1
0
        public static bool TryParse(string s, out Fraction32 value)
        {
            int wholeNumber, numerator, denominator;

            if (FractionUtil.TryParse32(s, out wholeNumber, out numerator, out denominator))
            {
                value = new Fraction32(wholeNumber, numerator, denominator);
                return(true);
            }

            value = new Fraction32();
            return(false);
        }