title: use a derived class's field in the base class in c#
body: <p>I want to have a field, defined in a base class, that will affect the creation of an object belonging to the base class. However, I want to be able to override the value of the field, <strong>before</strong> the Base class cto'r is called. An example:</p>
  
  <pre><code>class ObjNeedParam
  {
      public ObjNeedParam(int p)
      {
          val = p;
      }
      int val;
      int Value{get{return Value;}}
  }
  class Base
  {
      public Base()
      {
          obj = new ObjNeedParam(paramVal);
      }
      ObjNeedParam obj;
      protected int paramVal = 1;
  }
  
  class Derived : Base
  {
      public Derived()
      { 
          //Once I'm here, obj has already been created with paramVal=1 instead of 2!            
          dummy = 3;
      }
      new int paramVal = 2;
      int dummy;
  }
  </code></pre>