mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
319 B
19 lines
319 B
using System; |
|
|
|
namespace Templates { |
|
[Flags] |
|
public enum Context { |
|
Generic = 0, |
|
Parameter = 1 << 0, |
|
Return = 1 << 1, |
|
Interface = 1 << 2, |
|
Wrapper = 1 << 3 |
|
} |
|
public static class ContextExtensions { |
|
public static bool Is (this Context bits, Context bit) |
|
{ |
|
return (bits & bit) == bit; |
|
} |
|
} |
|
} |
|
|
|
|