linux-packaging-mono/mcs/tests/gtest-optional-38.cs
Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

36 lines
625 B
C#

class C
{
}
class Foo
{
public int SetValue (string name, string value, string defaultValue = null, bool preserveExistingCase = false)
{
return 1;
}
public int SetValue (string name, C value, C defaultValue = default(C), bool relativeToProject = true, C relativeToPath = default(C), bool mergeToMainGroup = false, string condition = null)
{
return 2;
}
public int SetValue (string name, object value, C defaultValue = null)
{
return 3;
}
}
class Test
{
static int Main()
{
var f = new Foo ();
C b = null;
C c = null;
if (f.SetValue ("a", b, c) != 2)
return 1;
return 0;
}
}