いくつかのカスタム属性を持つ基本クラスがあります。このクラスは、他の多くのクラスの基本クラスです。これは私のクラスです。
[CustomAttribute1("First")]
[CustomAttribute2("Other")]
public class Foo
{
    protected void checkAttributes()
    {
        // Need to run this code when the class and derived classes are instantiated 
    }
}
次に、インスタンスを作成すると
Foo MyClass = new Foo();
または派生クラスを構築します。
[CustomAttribute1("FirstDerived")]
public CustClass : Foo
{
    public CustClass(int MyVar)
    {
        //Something here
    }
    public void OtherMethod()
    {
    }
}
CustClass MyClass = new CustClass(5);
メソッドcheckAttributes()を常に実行する必要があります。
それは可能ですか?
別のアプローチがありますか?
注:派生クラスでコンストラクターが再定義されている場合でも、checkAttributes()が実行されることを確認する必要があります。