I'm overriding a property. Well, trying to.
What the deuce?
Code:
namespace Foo {
public class A {
public TypeA property = new TypeA();
}
public void SetSomething(string foo)
{
property.blah = foo;
}
}
namespace Bar {
public class B : Foo.A {
public TypeB property = new TypeB();
}
}
Bar.B foo = new Bar.B();
foo.SetSomething("woowoo");
if (foo.property.blah == null)
{
// yes, it's null. :(
}
What the deuce?
Last edited: