示例#1
0
        /// <summary>
        /// Initializes the ProxyFacade class
        /// </summary>
        /// <param name="typesService">Service for type manipulation</param>
        public static void Initialize(TypesService typesService)
        {
            if (typesService == null)
            {
                throw new ArgumentNullException("typesService");
            }

            StaticProxyFacade inst = new StaticProxyFacade();

            inst.typesService = typesService;

            instance = inst; // Instance initialized
        }
示例#2
0
        /// <summary>
        /// Initializes the ProxyFacade class
        /// </summary>
        /// <param name="typesService">Service for type manipulation</param>
        public static void Initialize(TypesService typesService)
        {
            if (typesService == null)
            {
                throw new ArgumentNullException("typesService");
            }

            StaticProxyFacade inst = new StaticProxyFacade();

            inst.typesService = typesService;

            instance = inst; // Instance initialized
        }