結果のクラス宣言は次のようになります。
public sealed partial class Refund : DataObjectBase<Refund>
{
}
}
このコード(抜粋):
targetClass = new CodeTypeDeclaration(className);
targetClass.IsClass = true;
targetClass.TypeAttributes =
TypeAttributes.Public | TypeAttributes.Sealed;
targetClass.IsPartial = true; //partial so that genn'ed code can be safely modified
targetClass.TypeParameters.Add(new CodeTypeParameter{ Name=className});
targetClass.BaseTypes.Add(new CodeTypeReference { BaseType = "DataObjectBase", Options = CodeTypeReferenceOptions.GenericTypeParameter });
次のクラス宣言を生成します。
public sealed partial class Refund<Refund> : DataObjectBase
{
}
私は何を間違っていますか?