You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
19
external/cecil/Mono.Cecil/Modifiers.cs
vendored
19
external/cecil/Mono.Cecil/Modifiers.cs
vendored
@@ -56,7 +56,9 @@ namespace Mono.Cecil {
|
||||
public OptionalModifierType (TypeReference modifierType, TypeReference type)
|
||||
: base (type)
|
||||
{
|
||||
Mixin.CheckModifier (modifierType, type);
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ());
|
||||
Mixin.CheckType (type);
|
||||
this.modifier_type = modifierType;
|
||||
this.etype = MD.ElementType.CModOpt;
|
||||
}
|
||||
@@ -99,21 +101,12 @@ namespace Mono.Cecil {
|
||||
public RequiredModifierType (TypeReference modifierType, TypeReference type)
|
||||
: base (type)
|
||||
{
|
||||
Mixin.CheckModifier (modifierType, type);
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException (Mixin.Argument.modifierType.ToString ());
|
||||
Mixin.CheckType (type);
|
||||
this.modifier_type = modifierType;
|
||||
this.etype = MD.ElementType.CModReqD;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static partial class Mixin {
|
||||
|
||||
public static void CheckModifier (TypeReference modifierType, TypeReference type)
|
||||
{
|
||||
if (modifierType == null)
|
||||
throw new ArgumentNullException ("modifierType");
|
||||
if (type == null)
|
||||
throw new ArgumentNullException ("type");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user