anerjan / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Add non-generic Deserialize that accepts a Type parameter and returns an object #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Title says it all, this is useful for APIs that don't know the type at 
compile-time.

Original issue reported on code.google.com by chadchmo...@gmail.com on 3 Nov 2011 at 9:08

GoogleCodeExporter commented 9 years ago
This is available in v1 & v2 via Serializer.NonGeneric.*, and (v2 only) in the 
TypeModel API. Indeed, in v2 non-generic is the **primary** API (the generic 
API now simply passes typeof(T) to the non-generic API; this is a reversal from 
v1, where the generic API was the primary, and the non-generic API had to do 
MakeGenericMethod() etc)

Original comment by marc.gravell on 3 Nov 2011 at 9:15