3using System.Reflection;
4using System.Threading.Tasks;
33 if (typeInfo.IsAssignableFrom(Type))
36 return Grade.NotAtAll;
39 private static readonly TypeInfo typeInfo = typeof(IEnumerable<Parameter>).GetTypeInfo();
48 if (Value is IEnumerable<Parameter> Parameters)
49 await
Tokenize(Parameters,
null, Process);
58 public static async Task
Tokenize(IEnumerable<Parameter> Parameters,
61 if (!(Parameters is
null))
77 return Task.CompletedTask;
85 public async Task<object>
Evaluate(
object Instance)
91 if (Obj.TryGetFieldValue(
"Parameters", out
object Obj2) &&
99 foreach (
object Item
in A)
107 Parameters.Add(Parameter2);
115 else if (Instance is IEnumerable<Parameter> Parameters)
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< object > Specialize(GenericObject Object)
Creates a specialized representation of a generic object.
Contains information about a tokenization process.
uint DocumentIndexOffset
Document Index Offset. Used to identify sequences of tokens in a document.
Generic object. Contains a sequence of properties.
A chunked list is a linked list of chunks of objects of type T .
Contains the definition of a contract
Abstract base class for contractual parameters
async Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Tokenizes a set of parameters.
async Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Grade Supports(Type Type)
How well the tokenizer can tokenize objects of type Type .
async Task< object > Evaluate(object Instance)
Evaluates the property evaluator, on an object instance.
ParametersTokenizer()
Tokenizes a set of parameters.
static async Task Tokenize(IEnumerable< Parameter > Parameters, Contract Contract, TokenizationProcess Process)
Tokenizes a set of parameters.
Task Prepare(string Definition)
Prepares the evaluator with its definition.
Custom external property evaluator.
Interface for full-text-search tokenizers