diff options
author | Brant K. Kyser <brantkyser@gmail.com> | 2013-10-17 13:27:48 -0500 |
---|---|---|
committer | Brant K. Kyser <brantkyser@gmail.com> | 2013-10-17 13:27:48 -0500 |
commit | 3235570619cf3c35a5fba24e32c09fedda5600ea (patch) | |
tree | e795bd6c9611d6d845050afc4f07af0ca062f919 /Lib/csharp/wchar.i | |
parent | 0f1e73fd26238b1cb1515f8518393e8a4e0bd57d (diff) | |
download | swig-3235570619cf3c35a5fba24e32c09fedda5600ea.tar.gz |
Globablly qualify the use of types from the .NET framework's System namespace in the C# module and library.
Diffstat (limited to 'Lib/csharp/wchar.i')
-rw-r--r-- | Lib/csharp/wchar.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/csharp/wchar.i b/Lib/csharp/wchar.i index 1d95edded..066044014 100644 --- a/Lib/csharp/wchar.i +++ b/Lib/csharp/wchar.i @@ -27,7 +27,7 @@ static SWIG_CSharpWStringHelperCallback SWIG_csharp_wstring_callback = NULL; public static extern void SWIGRegisterWStringCallback_$module(SWIGWStringDelegate wstringDelegate); static string CreateWString([MarshalAs(UnmanagedType.LPWStr)]IntPtr cString) { - return System.Runtime.InteropServices.Marshal.PtrToStringUni(cString); + return global::System.Runtime.InteropServices.Marshal.PtrToStringUni(cString); } static SWIGWStringHelper() { @@ -82,7 +82,7 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterWStringCallback_$module(SWIG_CSharpWStri %typemap(csin) wchar_t * "$csinput" %typemap(csout, excode=SWIGEXCODE) wchar_t * { - string ret = System.Runtime.InteropServices.Marshal.PtrToStringUni($imcall);$excode + string ret = global::System.Runtime.InteropServices.Marshal.PtrToStringUni($imcall);$excode return ret; } %typemap(csvarin, excode=SWIGEXCODE2) wchar_t * %{ |