Mono.Debugger.Frontend.Engine.RegisterAlias C# (CSharp) Method

RegisterAlias() public method

public RegisterAlias ( string s, Type t ) : void
s string
t System.Type
return void
        public void RegisterAlias(string s, Type t)
        {
            if (!t.IsSubclassOf (typeof (Command)))
                throw new Exception ("Need a type derived from CL.Command");
            else if (t.IsAbstract)
                throw new Exception (
                    "Some clown tried to register an abstract class");

            Aliases [s] = t;
        }