effkay
effkay

Reputation: 854

.NET deserialization - using different assembly

I've got a problem I can't find any solution for. I have a textfile containing Serialized objects. I need to extract that data. I have the code of class that was used to serialize and the entities but not the original assembly.

I can't deserialize this because the serialization class wants the exact same assembly to deserialize as the one used to serialize. Is there some tool that will allow me to extact this data easily ?

Upvotes: 0

Views: 499

Answers (3)

effkay
effkay

Reputation: 854

I guess I will have to play around with BinaryFormatter.Binder .. right?

More: http://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.binary.binaryformatter.binder.aspx

Upvotes: 1

moogs
moogs

Reputation: 8202

From what I understand in your question, the Serialized objects are possibly using (having members of ) classes/interfaces/datatypes an assembly that you do not have.

So I guess the short answer is no, you can't

Upvotes: 0

Steven Sudit
Steven Sudit

Reputation: 19630

Make a new assembly with the same name.

Upvotes: 0

Related Questions