예제 #1
0
        /// <summary>
        /// </summary>
        /// <param name="moduleBuilder"></param>
        /// <exception cref="ArgumentNullException"></exception>
        public ProxyCreator(ModuleBuilder moduleBuilder)
        {
            if (moduleBuilder == null)
            {
                throw new ArgumentNullException(nameof(moduleBuilder));
            }

            _storage = new ProxyTypeStorage(moduleBuilder);
        }
예제 #2
0
        public ProxyFactory(ProxyTypeStorage storage, T subject)
        {
            if (storage == null)
            {
                throw new ArgumentNullException(nameof(storage));
            }
            if (subject == null)
            {
                throw new ArgumentNullException(nameof(subject));
            }

            _storage = storage;
            _subject = subject;
        }