title: How do I inject a property of a primitive type using Ninject?
body: <p>How do I inject the name "Tommy" into the <code>Name</code> property of Bar when instantiating / activating a <code>Foo</code> object?</p>
  
  <pre><code>class Foo
      {
          public Bar Bar { get; set; }
  
          public Foo(Bar b) { Bar = b; }
      }
  
      class Bar
      {
          [Inject]
          public string Name { get; set; }
      }
  </code></pre>