Fusion.Core.Shell.Invoker.GetCommand C# (CSharp) 메소드

GetCommand() 개인적인 메소드

private GetCommand ( string name ) : Command
name string
리턴 Command
		internal Command GetCommand ( string name )
		{
			Type cmdType;

			if (commands.TryGetValue( name, out cmdType )) {
				return (Command)Activator.CreateInstance( cmdType, this );
			}
			
			throw new InvalidOperationException(string.Format("Unknown command '{0}'.", name));
		}