NGettext.Plural.AstPluralRule.AstPluralRule C# (CSharp) Method

AstPluralRule() public method

Initializes a new instance of the Token class with given NumPlurals and abstract syntax tree.
public AstPluralRule ( int numPlurals, Token astRoot ) : System
numPlurals int
astRoot NGettext.Plural.Ast.Token Abstract syntax tree root.
return System
        public AstPluralRule(int numPlurals, Token astRoot)
        {
            if (numPlurals <= 0)
                throw new ArgumentOutOfRangeException("numPlurals");
            if (astRoot == null)
                throw new ArgumentNullException("astRoot");

            this.NumPlurals = numPlurals;
            this.AstRoot = astRoot;
        }