title: How to share a property amongst several C# classes
body: <p>I have several classes which inherit from different classes.
  All those classes have a session property (which they define or inherit).</p>
  
  <p>I'd like to add a property to all those classes :</p>
  
  <pre><code>public SessionObject SessionObject
  {
      get
      {
          return Session["SessionObject"] as SessionObject;
      }
      set
      {
          Session["SessionObject"] = value;
      }
  }
  </code></pre>
  
  <p>But I don't see how.</p>
  
  <p>I think in C++ I could just use a template, but I don't see Generics doing that.</p>
  
  <p>How can it be done?</p>