c# - Messagepack, CSharp and Abstract Classes -


i have following code:

 _serializerresponse = messagepackserializer .get<abstractwebresponse>(); 

and try messagepackserializer!

but gives me following error:

this operation not supported because 'abstractwebresponse' cannot instanciated.

yes, abstractwebresponse can not instaciated, it's child classes wich try serialize (and deserialize) can! , need so, because don't know type of class @ deserialization time! not transmited in data stream works?


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -