public void Register(Type type, IServiceLocator locator) { var interfaces = type.FindInterfaces((t, obj) => _binding.Invoke(t, type), null); if (interfaces.Length > 0) Register(interfaces[0], type, locator); }