예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyFactoryBuilder"/> class.
 /// </summary>
 public LazyFactoryBuilder()
 {
     _factory[typeof(IList)] = new LazyListFactory();
     #if dotnet2
     _factory[typeof(IList<>)] = new LazyListGenericFactory();
     #endif
 }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LazyFactoryBuilder"/> class.
        /// </summary>
        public LazyFactoryBuilder()
        {
            _factory[typeof(IList)] = new LazyListFactory();
#if dotnet2
            _factory[typeof(IList <>)] = new LazyListGenericFactory();
#endif
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyFactoryBuilder"/> class.
 /// </summary>
 public LazyFactoryBuilder()
 {
     _factory[typeof(IList)] = new LazyListFactory();
     _factory[typeof(IList<>)] = new LazyListGenericFactory();
 }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LazyFactoryBuilder"/> class.
        /// </summary>
        public LazyFactoryBuilder()
        {
            _factory[typeof(IList)] = new LazyListFactory();

            _factory[typeof(IList <>)] = new LazyListGenericFactory();
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LazyFactoryBuilder"/> class.
 /// </summary>
 public LazyFactoryBuilder(Type implType)
 {
     _implType = implType;
     _factory[typeof(IList)]    = new LazyListFactory();
     _factory[typeof(IList <>)] = new LazyListGenericFactory();
 }