Exemplo n.º 1
0
	    public NetClass(IReflector reflector, NetReflector netReflector, Type clazz)
		{
			if(reflector == null)
			{
				throw new ArgumentNullException("reflector");
			}
			
			if(netReflector == null)
			{
				throw new ArgumentNullException("netReflector");
			}
			
			_reflector = reflector;
			_netReflector = netReflector;
			_type = clazz;
			_constructor = ReflectConstructorSpec.UnspecifiedConstructor;
		}
Exemplo n.º 2
0
		private void CreateConstructor() 
		{
			if(!_constructor.CanBeInstantiated().IsUnspecified())
			{
				return;
			}
			_constructor = ConstructorSupport.CreateConstructor(this, _type, _netReflector.Configuration(), GetDeclaredConstructors());
		}