StyleCopPlus.Plugin.MoreCustom.NumericValue.Parse C# (CSharp) 메소드

Parse() 공개 메소드

Parses numeric value from text.
public Parse ( string text ) : void
text string
리턴 void
        public void Parse(string text)
        {
            int value;
            if (!Int32.TryParse(text, out value))
                return;

            if (value < m_minValue)
                value = m_minValue;

            if (value > m_maxValue)
                value = m_maxValue;

            Value = value;
        }