Esempio 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);
        }
Esempio 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;
    }