示例#1
0
        public GenericImporter(IGenericClass <T> importGenericInterface)
        {
            if (importGenericInterface == null)
            {
                throw new ArgumentNullException(nameof(importGenericInterface));
            }

            System.Threading.Interlocked.Increment(ref counter);
        }
示例#2
0
 public DeepClassWithCollectionOfGenericType(IGenericClass <int, int> instance, IEnumerable <IGenericClass <int, int> > collection, Func <IGenericClass <int, int> > factory)
 {
     Instance    = instance;
     Collection  = collection;
     FromFactory = factory();
 }