Add C# example showing how to modify the underlying enum type

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-06-10 06:06:12 +00:00
commit 1a317ff3db
2 changed files with 40 additions and 0 deletions

View file

@ -110,3 +110,10 @@ struct WasCrashing {};
void hoop(WasCrashing was) {}
%}
// Enum underlying type
%typemap(csbase) BigNumbers "uint"
%inline %{
enum BigNumbers { big=0x80000000, bigger };
%}