1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-06 16:25:59 +02:00

AllowDuplicatesAttribute

This commit is contained in:
Brian Fiete 2019-12-25 16:38:17 -08:00
parent 2618b29daa
commit 8808da307f
13 changed files with 39 additions and 2 deletions

View file

@ -251,6 +251,12 @@ namespace System
}
}
[AttributeUsage(.Enum)]
public struct AllowDuplicatesAttribute : Attribute
{
}
[AttributeUsage(.Class | .Struct)]
public struct UnionAttribute : Attribute
{

View file

@ -848,6 +848,7 @@ namespace System.Reflection
EnumDiscriminator = 0x0200
}
[AllowDuplicates]
public enum MethodFlags : int16
{
MethodAccessMask = 0x0007,
@ -869,6 +870,7 @@ namespace System.Reflection
// vtable layout mask - Use this mask to retrieve vtable attributes.
VtableLayoutMask = 0x0100,
ReuseSlot = 0x0000, // The default.
NewSlot = 0x0100, // Method always gets a new slot in the vtable.
// end vtable layout mask

View file

@ -8,11 +8,14 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
[AllowDuplicates]
enum EnumA
{
Abo = 1,
Boop = _*2,
Croop = _*2,
Zoop = 1
}
struct Blurg