swig/Examples/test-suite/csharp/operator_overload_runme.cs
William S Fulton fc0d1e82bc operator overloading test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 00:14:18 +00:00

17 lines
299 B
C#

using System;
using System.Threading;
using operator_overloadNamespace;
public class runme
{
static void Main()
{
Op op = new Op(100);
op++;
if (op.i != 101) throw new Exception("operator++ failed");
op--;
if (op.i != 100) throw new Exception("operator-- failed");
}
}