The easy to use and full featured Irc Bot everyone is talking about!
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. }