Beispiel #1
0
        public override Attribute CreateAttributeInstance <T>()
        {
            var attClass = typeof(T);

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

                return(attClass.IsAssignableFrom(typeof(Token)) ? new Token() : @delegate.CreateAttributeInstance <T>());
            }