You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
In the math types (e.g. Vector3) the IDataSerializable Interface method serialize is not public. I need this method public to copy the data to a Byte Array using the BinarySerializer
Current method is private
void IDataSerializable.Serialize(BinarySerializer serializer)
Changing to gives an compile error:
public void IDataSerializable.Serialize(BinarySerializer serializer)
But the following seems to work fine
public void Serialize(BinarySerializer serializer)
I suggest to change in the next release, if there are no other side effects
The text was updated successfully, but these errors were encountered:
@dfkeenan is right - the interface is implemented explicitly and you need to cast to IDataSerializable. Alternatively you can use BinarySerializer.Save method. There are no plans to make this implementation public as it may be removed completely in future releases for the reasons described in #398.
In the math types (e.g. Vector3) the IDataSerializable Interface method serialize is not public. I need this method public to copy the data to a Byte Array using the BinarySerializer
Current method is private
void IDataSerializable.Serialize(BinarySerializer serializer)
Changing to gives an compile error:
public void IDataSerializable.Serialize(BinarySerializer serializer)
But the following seems to work fine
public void Serialize(BinarySerializer serializer)
I suggest to change in the next release, if there are no other side effects
The text was updated successfully, but these errors were encountered: