From e78b5a1208579b487114543c7242e07efeab96ec Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 21 Apr 2023 09:48:30 +1200 Subject: C#: Add missing explicit `global::System` in manual Closes: #1944 --- Doc/Manual/CSharp.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index 3cfff6e68..1fad33328 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -1473,7 +1473,7 @@ public class CSharpDerived : Base { public override uint UIntMethod(uint x) { - Console.WriteLine("CSharpDerived - UIntMethod({0})", x); + global::System.Console.WriteLine("CSharpDerived - UIntMethod({0})", x); return x; } } @@ -1861,7 +1861,7 @@ and the following usage from C# after running the code through SWIG:
   Wheel wheel = new Bike(10).getWheel();
-  Console.WriteLine("wheel size: " + wheel.size);
+  global::System.Console.WriteLine("wheel size: " + wheel.size);
   // Simulate a garbage collection
   global::System.GC.Collect();
   global::System.GC.WaitForPendingFinalizers();
@@ -2010,7 +2010,7 @@ In order to understand why, consider a garbage collection occurring...
   Container container = new Container();
   Element element = new Element(20);
   container.setElement(element);
-  Console.WriteLine("element.value: " + container.getElement().value);
+  global::System.Console.WriteLine("element.value: " + container.getElement().value);
   // Simulate a garbage collection
   global::System.GC.Collect();
   global::System.GC.WaitForPendingFinalizers();
-- 
cgit v1.2.1