Ejemplo n.º 1
0
        protected virtual AssemblyTypeHandlerEventArgs OnBeforeAddType(Assembly assembly, Type type)
        {
            Requires.NotNull(assembly, "assembly");
            Requires.NotNull(type, "type");

            var args    = new AssemblyTypeHandlerEventArgs(assembly, type);
            var handler = BeforeAddType;

            if (handler != null)
            {
                handler(this, args);
            }

            return(args);
        }
Ejemplo n.º 2
0
    protected virtual AssemblyTypeHandlerEventArgs OnBeforeAddType(Assembly assembly, Type type)
    {
      Requires.NotNull(assembly, "assembly");
      Requires.NotNull(type, "type");

      var args = new AssemblyTypeHandlerEventArgs(assembly, type);
      var handler = BeforeAddType;
      if (handler != null) handler(this, args);

      return args;
    }