Method Reflect
Reflect<T>(String, Object)
LUCENENET specific overload to support generics.
Declaration
void Reflect<T>(string key, object value)
where T : IAttribute
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
Type Parameters
Reflect(Type, String, Object)
This method gets called for every property in an Attribute/AttributeSource
passing the of the IAttribute, a key
and the actual value
.
E.g., an invocation of ReflectWith(IAttributeReflector)
would call this method once using typeof(Analysis.TokenAttributes.ICharTermAttribute)
as attribute type, "term"
as key
and the actual value
as a .
Declaration
void Reflect(Type type, string key, object value)
Parameters
Type |
Name |
Description |
Type |
type |
|
System.String |
key |
|
System.Object |
value |
|