I have a key "MyKey" It can have a value "Key1" or "Key2".

Now i need to pass to container "MyKey" and value "Key1".

Can this be done without creating a Interface object in Container??

Any methods to go about.

```
 public class KeyMode:IKeyMode
{

        private string keyMode;
        public KeyMode(string keyMode)
        {
            this.keyMode= keyMode;

        }

        public string getKeyMode()
        {
            return keyMode;
        }

}

public interface IKeyMode
    {
        string getKeyMode();
    }

 KeyMode rcm = new KeyMode("key1");
                    container.RegisterInstance<IKeyMode>(rcm);

```

I have created IUnityContainer object "container" and a class KeyMode and a interface...I am creating Keymode object and registering value to container to pass.
Instead of KeyMode object creation. Is there a method to directly pass to container object in key value pair