How can I serialize a search

I am working on a project for work where I need to binary serialize each object returned by one of ours ProxyFactories. We decided that it would be nice to require an attribute Serializablefor each class to be returned, but now my problem is that I cannot serialize the object LookUpthat .NET provides.

In any case, I can get around this without changing this parameter. How Dictionary?

My only idea is to create my own class to implement ILookup, but there certainly should be an easier way.

This belongs to the class.

+4
source share

Source: https://habr.com/ru/post/1534541/


All Articles