Skip to content

Commit

Permalink
Fix getter access under AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Claytonious committed Jun 21, 2014
1 parent f3e558b commit 83c3ceb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msgpack-sharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[assembly: AssemblyVersion("1.10.0.0")]
[assembly: AssemblyVersion("1.11.0.0")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
Expand Down
4 changes: 3 additions & 1 deletion msgpack-sharp/SerializableProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ internal Type ValueType

internal void Serialize(object o, BinaryWriter writer)
{
MsgPackIO.SerializeValue(propInfo.GetValue(o, emptyObjArgs), writer);
// We don't use the simpler propInfo.GetValue because the getter might have been left behind
// by AOT
MsgPackIO.SerializeValue(propInfo.GetGetMethod().Invoke(o, emptyObjArgs), writer);
}

internal void Deserialize(object o, BinaryReader reader)
Expand Down

0 comments on commit 83c3ceb

Please sign in to comment.