ImpromptuInterface/src/Impromptu.cs
/// <summary>
/// Private helper method that initializes the proxy.
/// </summary>
/// <param name="proxytype">The proxytype.</param>
/// <param name="original">The original.</param>
/// <param name="interfaces">The interfaces.</param>
/// <param name="propertySpec">The property spec.</param>
/// <returns></returns>
Private helper method that initializes the proxy.
Private helper method that initializes the proxy .
internal static object InitializeProxy(Type proxytype, object original, IEnumerable<Type> interfaces =null, IDictionary<string, Type> propertySpec =null)
        {
            var tProxy = (IActLikeProxyInitialize)Activator.CreateInstance(proxytype);
            tProxy.Initialize(original, interfaces, propertySpec);
            return tProxy;
        }
internal static object InitializeProxy ( Type proxytype , object original , IEnumerable < Type > interfaces = null , IDictionary < string , Type > propertySpec = null ) { var tProxy = ( IActLikeProxyInitialize ) Activator . CreateInstance ( proxytype ) ; tProxy . Initialize ( original , interfaces , propertySpec ) ; return tProxy ; }
Private helper method that initializes the proxy.
Private helper method that initializes the proxy .
None
proxytype
Type
None
original
object
None
interfaces
IEnumerable<Type>
None
propertySpec
IDictionary<string, Type>
The property spec.
The property spec .