You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@ -156,6 +156,9 @@ namespace System.Reflection.Emit {
|
||||
public void SetCustomAttribute (CustomAttributeBuilder customBuilder) {
|
||||
RejectIfCreated ();
|
||||
|
||||
if (customBuilder == null)
|
||||
throw new ArgumentNullException ("customBuilder");
|
||||
|
||||
string attrname = customBuilder.Ctor.ReflectedType.FullName;
|
||||
if (attrname == "System.Runtime.InteropServices.FieldOffsetAttribute") {
|
||||
byte[] data = customBuilder.Data;
|
||||
@ -202,6 +205,8 @@ namespace System.Reflection.Emit {
|
||||
|
||||
public void SetOffset( int iOffset) {
|
||||
RejectIfCreated ();
|
||||
if (iOffset < 0)
|
||||
throw new ArgumentException ("Negative field offset is not allowed");
|
||||
offset = iOffset;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user