public override Attribute CreateAttributeInstance <T>() { var attClass = typeof(T); return(attClass.GetTypeInfo().IsAssignableFrom(typeof(MockUTF16TermAttributeImpl)) ? new MockUTF16TermAttributeImpl() : @delegate.CreateAttributeInstance <T>()); }
public override Attribute CreateAttributeInstance <T>() { var attClass = typeof(T); return(attClass.IsAssignableFrom(typeof(Token)) ? new Token() : @delegate.CreateAttributeInstance <T>()); }