Ejemplo n.º 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
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
 }