36 lines
625 B
C#
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;
|
||
|
}
|
||
|
}
|