aboutsummaryrefslogtreecommitdiff
path: root/Lib/csharp/enumtypesafe.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-11-09 11:32:50 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-11-09 11:32:50 +0000
commitc7b5316912df44db7e728cd66ba030a0502b737b (patch)
treea27036b846780660eff53df4c17d6908ddd0d73a /Lib/csharp/enumtypesafe.swg
parentd73f04e925e9210f2c688ef3656e6059eb540565 (diff)
parent5f53503b7d7fa62a351edc7d3d579d69c55c9952 (diff)
downloadswig-c7b5316912df44db7e728cd66ba030a0502b737b.tar.gz
Merge branch 'master' of https://github.com/BrantKyser/swig
- Remove using directives from the generated C# code and fully qualify the use of all .NET framework types in order to minimize potential name collisions from input files defining types, namespace, etc with the same name as .NET framework members. - Globally qualify the use of .NET framework types in the System namespace - Remove .NET 1.1 support, .NET 2 is the minimum for the C# module Closes #79 * 'master' of https://github.com/BrantKyser/swig: Correct spelling of compatibility. Update documentation to reflect fully qualifying the use of .NET types in the generated code. Add support for SWIG2_CSHARP macro to create SWIG 2 backwards compatability mode. Remove using directives from the generated C# code and fully qualify the use of all .NET framework types in order to minimize potential name collisions from input files defining types, namespace, etc with the same name as .NET framework members. Since SWIG 3.0 removes support for .NET 1.1, cleanup the C# library by removing the use of the SWIG_DOTNET_1 macro. Globablly qualify the use of types from the .NET framework's System namespace in the C# module and library. Add test case to demonstrate the name collision that occurs in the generated C# code when a namespace is named System.
Diffstat (limited to 'Lib/csharp/enumtypesafe.swg')
-rw-r--r--Lib/csharp/enumtypesafe.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csharp/enumtypesafe.swg b/Lib/csharp/enumtypesafe.swg
index 772a88013..b7079343c 100644
--- a/Lib/csharp/enumtypesafe.swg
+++ b/Lib/csharp/enumtypesafe.swg
@@ -97,7 +97,7 @@
for (int i = 0; i < swigValues.Length; i++)
if (swigValues[i].swigValue == swigValue)
return swigValues[i];
- throw new System.ArgumentOutOfRangeException("No enum $csclassname with value " + swigValue);
+ throw new global::System.ArgumentOutOfRangeException("No enum $csclassname with value " + swigValue);
}
public override string ToString() {