protected void ClearState() { this.bnfTerm = null; this.value = null; this.defaultValue = null; this.isOptionalValue = false; this.Flags = TermFlags.None; this.AstConfig = null; this.inverseValueConverterForUnparse = null; this.UtokenizerForUnparse = null; }
protected void SetState(BnfiTermConversion source) { this.bnfTerm = source.bnfTerm; this.value = source.value; this.defaultValue = source.defaultValue; this.isOptionalValue = source.isOptionalValue; this.Flags = source.Flags; this.AstConfig = source.AstConfig; this.inverseValueConverterForUnparse = source.inverseValueConverterForUnparse; if (this.UtokenizerForUnparse != null) { this.UtokenizerForUnparse = source.UtokenizerForUnparse; } }
protected static ValueUtokenizer <object> CastUtokenizerToObject <T>(ValueUtokenizer <T> utokenizer) { return((formatProvider, reference, obj) => utokenizer(formatProvider, reference, (T)obj)); }