selector.AddSurrogate(typeof(Vector3), new StreamingContext(StreamingContextStates.All), vector3Surrogate);
the last part, "vector3Surrogate" is marked as an error saying, "cannot convert from 'Vector3SerrializationSurrogate' to 'System.Runtime.Serialization.ISerializationSurrogate.'"
Does anybody know what the problem could be? I am totally new to Serialization so it could be something fairly basic.
https://www.youtube.com/watch?v=5roZtuqZyuw
Here is the video tutorial I am following if it helps.
↧