title: Can we pass static member variables to constructor to resolve unity?
body: <p>i have an interface which is registered with a Class.
  This class inherits a base class to whom i need to pass parameter while calling it's constructor.</p>
  <pre><code>In app.config
  &lt;register type=&quot;IA&quot; mapTo=&quot;A&quot;&gt;
        &lt;/register&gt;
      
  
      objA=container.Resolve&lt;IA&gt;();
      
     public  Class B
      {
          public B(string text)
          {
          }
      }
      
     public  Class A : B , IA
      {
          static string text=&quot;hello&quot;;
          
          public A() : base(text)
          {
          }``
      }
  </code></pre>
  <p>Is this a good practice to pass static variable in constructor to resolve unity ?``
  is there any other way of doing it ?</p>
  <p>Note : if i want to pass the parameter from outside the class A, i will have to make changes in interface IA which is being used in many other parts of my project.</p>