public string GetServiceDllPath(string serviceName) { if (string.IsNullOrWhiteSpace(serviceName)) { throw new ArgumentNullException(nameof(serviceName)); } using (var service = new ServiceEditor(serviceName)) { var dll = service.GetServiceDLL(); return(dll); } }