antmicro / Migrant

Fast and flexible serialization framework usable on undecorated classes.
MIT License
46 stars 18 forks source link

Design and implement API for generic surrogates #95

Closed mateusz-holenko closed 9 years ago

mateusz-holenko commented 9 years ago

Right now we are unable to install single surrogate for generic type which renders simple surrogation of types like List<T>, Tuple<T1, T2>, etc., impossible.

Due to a limitation of C# syntax we cannot pass open generic type as an argument to ForObject and ForSurrogate methods, like: ForObject<List<>>(...) or ForObject<List<T>>(...), so we must think of a new API.

konrad-kruczynski commented 9 years ago

Done.