25066Fermer25068
WarptenLe 17/02/2013 à 15:04
        [CommandBind("help", "Displays a list of available commands", "Yo dawg, i herd you like help so I put help in yo help..")]
        public void HandleHelpCommand(string command)
        {
            if (command.Length > 0)
            {
                if (CommandSyntaxStore.ContainsKey(command))
                    WriteFormatLine(">>  Syntax for {0} : `{1}`.", command, CommandSyntaxStore[command]);
                else
                    WriteLine(">> No help available for that command.");
            }
            else
            {
                WriteLine(">> List of available commands:");
                foreach (KeyValuePair<string, string> commandInfo in CommandHelpStore)
                    WriteFormatLine(">>  {0,15}: {1}.", commandInfo.Key, commandInfo.Value);
            }
        }





Quelqu'un connaît une lib qui simule le BigInteger de .NET 4.0 pour .NET 3.5 ? Vu qu'ils ont viré BigInteger de la bêta 1 du 3.5...