How Do I Properly Deserialize?

I’m having trouble deserializing a binary file I’ve created in Visual C#. I’ve read the various threads about VersionDeserializationBinder but the log still spits out the same error. Looking closer, the function always returns NULL anyways, so something is definitely wrong.

The passed properties is my file from C# with SerializationTest as the assembly name. I suppose the executing assembly has to do with Unity/Mono.

Thanks for your help!

public sealed class VersionDeserializationBinder : SerializationBinder
    {
        public override Type BindToType(string assemblyName, string typeName)
        {
            if (!string.IsNullOrEmpty(assemblyName) && !string.IsNullOrEmpty(typeName))
            {    
				Debug.Log("Passed properties:

"+assemblyName + " " + typeName);
assemblyName = Assembly.GetExecutingAssembly().FullName;
Debug.Log(“Executing Assembly:
“+assemblyName);
// The following line of code returns the type.
Type typeToDeserialize = Type.GetType(String.Format(”{0}, {1}”, typeName, assemblyName));
Debug.Log("Type to Deserialize:
"+typeToDeserialize);
return typeToDeserialize;
}
return null;
}
}

Debug Log

Little bump here. Still having this same problem.