NGettext.Plural.Ast.TokenDefinition.GetNullDenotation C# (CSharp) Method

GetNullDenotation() public method

Gets a null denotation token for given token using the null denotation getter.
public GetNullDenotation ( Token self ) : Token
self Token
return Token
        public Token GetNullDenotation(Token self)
        {
            if (this.NullDenotationGetter == null)
                throw new InvalidOperationException("Unable to invoke null denotation getter: getter is not set.");
            if (self.Type != this.TokenType)
                throw new ArgumentException("Unable to invoke null denotation getter: invalid self type.", "self");

            return this.NullDenotationGetter(self);
        }