Original C# code:
public class Named : IReadWrite
{
Guid _id;
string _name;
...
public virtual void Read(BinaryReader reader)
{
_id = reader.ReadGuid();
_name = reader.ReadString();
}
public virtual void Write(BinaryWriter writer)
{
writer.Write(_id);
writer.Write(_name);
}
}
Generated Mercury code:
Public Class Named
Inherits IReadWrite
Dim _id As Guid
Dim _name As String
Sub ()
End Sub
End Class
Code that should have been generated:
Public Class Named
Inherits IReadWrite
Dim _id As Guid
Dim _name As String
Sub Read(reader As BinaryReader)
_id = reader.ReadGuid()
_name = reader.ReadString()
End Sub
Public Overridable Sub Write(writer As BinaryWriter)
writer.Write(_id)
writer.Write(_name)
End Sub
End Class