summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2023-04-21 09:48:30 +1200
committerOlly Betts <olly@survex.com>2023-04-21 09:48:30 +1200
commite78b5a1208579b487114543c7242e07efeab96ec (patch)
tree9db2623f5c11b1ce761f9c25bbe8bba352980270
parent27f964987ac68c72453ca189831287511f07a5be (diff)
downloadswig-e78b5a1208579b487114543c7242e07efeab96ec.tar.gz
C#: Add missing explicit `global::System` in manual
Closes: #1944
-rw-r--r--Doc/Manual/CSharp.html6
1 files 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:
<div class="code">
<pre>
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();