|
Avro C#
|
Class holds a cache of C# classes and their properties. The key for the cache is the schema full name. More...
Public Member Functions | |
| IAvroFieldConverter | GetDefaultConverter (Avro.Schema.Type tag, Type propType) |
| Find a default converter More... | |
| void | AddArrayHelper (string name, Type helperType) |
| Add an array helper. Array helpers are used for collections that are not generic lists. More... | |
| ArrayHelper | GetArrayHelper (ArraySchema schema, IEnumerable enumerable) |
| Find an array helper for an array schema node. More... | |
| DotnetClass | GetClass (RecordSchema schema) |
| Find a class that matches the schema full name. More... | |
| void | LoadClassCache (Type objType, Schema s) |
| Add an entry to the class cache. More... | |
Static Public Member Functions | |
| static void | AddDefaultConverter (IAvroFieldConverter converter) |
| Add a default field converter More... | |
| static void | AddDefaultConverter< TAvro, TProperty > (Func< TAvro, Schema, TProperty > from, Func< TProperty, Schema, TAvro > to) |
| Add a converter defined using Func<>. The converter will be used whenever the source and target types match and a specific attribute is not defined. More... | |
Class holds a cache of C# classes and their properties. The key for the cache is the schema full name.
|
inline |
Add an array helper. Array helpers are used for collections that are not generic lists.
| name | Name of the helper. Corresponds to metadata "helper" field in the schema. |
| helperType | Type of helper. Inherited from ArrayHelper |
|
inlinestatic |
Add a default field converter
| converter |
|
inlinestatic |
Add a converter defined using Func<>. The converter will be used whenever the source and target types match and a specific attribute is not defined.
| from | |
| to |
| TAvro | |
| TProperty |
|
inline |
Find an array helper for an array schema node.
| schema | Schema |
| enumerable | The array object. If it is null then Add(), Count() and Clear methods will throw exceptions. |
|
inline |
Find a class that matches the schema full name.
| schema |
|
inline |
Find a default converter
| tag | |
| propType |
|
inline |
Add an entry to the class cache.
| objType | Type of the C# class |
| s | Schema |