parent
8cf62a3325
commit
8e4868af75
5 changed files with 60 additions and 4 deletions
|
|
@ -15,6 +15,10 @@ public class runme
|
|||
if (a.getA() != "Hello set from MyFoo") {
|
||||
throw new Exception( "Test failed" );
|
||||
}
|
||||
a.setAByRef("Hello");
|
||||
if (a.getA() != "Hello setAByRef from MyFoo") {
|
||||
throw new Exception( "Test failed" );
|
||||
}
|
||||
a.Dispose();
|
||||
}
|
||||
|
||||
|
|
@ -28,6 +32,10 @@ public class runme
|
|||
if (a.getA() != "Hello set from MyFoo") {
|
||||
throw new Exception( "Test failed" );
|
||||
}
|
||||
a.setAByRef("Hello");
|
||||
if (a.getA() != "Hello setAByRef from MyFoo") {
|
||||
throw new Exception( "Test failed" );
|
||||
}
|
||||
a.Dispose();
|
||||
}
|
||||
}
|
||||
|
|
@ -44,6 +52,11 @@ public class MyFoo : Foo
|
|||
{
|
||||
base.setA(a + " set from MyFoo");
|
||||
}
|
||||
|
||||
public override void setAByRef(string a)
|
||||
{
|
||||
base.setA(a + " setAByRef from MyFoo");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue