The easy to use and full featured Irc Bot everyone is talking about!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Utility.cs 534B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Combot
  9. {
  10. public static class Utility
  11. {
  12. public static string GetAssemblyDirectory()
  13. {
  14. string codeBase = Assembly.GetExecutingAssembly().CodeBase;
  15. UriBuilder uri = new UriBuilder(codeBase);
  16. string path = Uri.UnescapeDataString(uri.Path);
  17. return Path.GetDirectoryName(path);
  18. }
  19. }
  20. }