/// <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); }
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; }