私は次のコードを持っています:
public abstract class TestProperty
{
public abstract Object PropertyValue { get; set; }
}
public class StringProperty: TestProperty
{
public override string PropertyValue {get;set}
}
これはコンパイル エラーを生成します。子クラスで同じ名前の異なる型を持つという目標を達成するために、TestProperty でジェネリック型を使用する必要があるのでしょうか?