test/Shared/FunctionalTests/TestHelpers/PartialTrustSandbox.cs
/// <summary>
/// Creates a new instance of the specified type in the partial trust sandbox and returns a proxy to it.
/// </summary>
/// <param name="type"> The type of object to create </param>
/// <returns> A proxy to the instance created in the partial trust sandbox </returns>
Creates a new instance of the specified type in the partial trust sandbox and returns a proxy to it.
Creates a new instance of the specified type in the partial trust sandbox and returns a proxy to it .
public object CreateInstance(Type type)
        {
            HandleDisposed();
            return _domain.CreateInstanceAndUnwrap(type.Assembly().FullName, type.FullName);
        }
public object CreateInstance ( Type type ) { HandleDisposed ( ) ; return _domain . CreateInstanceAndUnwrap ( type . Assembly ( ) . FullName , type . FullName ) ; }
Creates a new instance of the specified type in the partial trust sandbox and returns a proxy to it.
Creates a new instance of the specified type in the partial trust sandbox and returns a proxy to it .
A proxy to the instance created in the partial trust sandbox
A proxy to the instance created in the partial trust sandbox
type
Type
The type of object to create
The type of object to create