Imported Upstream version 5.16.0.163

Former-commit-id: 108ef693596ba53323fc750a7d4fdc946d0f5322
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-09-20 08:19:51 +00:00
parent 0875d0d9cd
commit 6b5644868c
40 changed files with 159 additions and 32 deletions

View File

@ -56,6 +56,18 @@ namespace Xamarin.ApiDiff {
change.AppendAdded ("[NonSerialized]\n");
}
}
var srcHasFieldMarshal = (source & FieldAttributes.HasFieldMarshal) != 0;
var tgtHasFieldMarshal = (target & FieldAttributes.HasFieldMarshal) != 0;
if (srcHasFieldMarshal != tgtHasFieldMarshal) {
// this is not a breaking change, so only render it if it changed.
if (srcHasFieldMarshal) {
change.AppendRemoved ("[MarshalAs]", false);
} else {
change.AppendAdded ("[MarshalAs]", false);
}
change.Append (Environment.NewLine);
}
}
// the visibility values are the same for MethodAttributes and FieldAttributes, so just use the same method.