c# - type used as a variable
<p>I have a simple business manager facade that should just persist some inventory information.  However I keep getting the error that "Home.Services.InventorySvc" is a type being used as a variable.</p>

<p>My facade code.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Home.Domain;
using Home.Services;

namespace Home.Business
{
    public class InventoryMngr
    {
        public void Create(CreateInventory inv) 
        {
            Factory factory = Factory.GetInstance();
            InventorySvc invSvc =
            (InventorySvc)factory.GetService(
            (InventorySvc).Name);
            invSvc.CreateInventory(inv);
        }
    }
} 
</code></pre>

<p>The InventorySvc code</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Home;
using Home.Domain;

namespace Home.Services
{
    public interface InventorySvc : IService
    {
        void CreateInventory(CreateInventory createinventory);
    }
}
</code></pre>
