示例#1
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorUInt32"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionUInt32(IInstanceIdentifierGenerator <uint> generator) : base(generator ?? new InstanceIdentifierGeneratorUInt32())
 {
 }
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorInt32Positive"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionInt32Positive(IInstanceIdentifierGenerator <int> generator = null) : base(generator ?? new InstanceIdentifierGeneratorInt32Positive())
 {
 }
示例#3
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorInt16"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionInt16Cached(IInstanceIdentifierGenerator <short> generator = null) : base(generator ?? new InstanceIdentifierGeneratorInt16())
 {
 }
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorUInt64"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionUInt64(IInstanceIdentifierGenerator <ulong> generator) : base(generator ?? new InstanceIdentifierGeneratorUInt64())
 {
 }
示例#5
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorUInt16"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionUInt16(IInstanceIdentifierGenerator <ushort> generator) : base(generator ?? new InstanceIdentifierGeneratorUInt16())
 {
 }
示例#6
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorGuid"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionGuid(IInstanceIdentifierGenerator <Guid> generator = null) : base(generator ?? new InstanceIdentifierGeneratorGuid())
 {
 }
 public InstanceCollectionCached(IInstanceIdentifierGenerator <TIdentifier> generator) : base(generator)
 {
 }
示例#8
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorInt32"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionInt32Cached(IInstanceIdentifierGenerator <int> generator = null) : base(generator ?? new InstanceIdentifierGeneratorInt32())
 {
 }
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorByte"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionByte(IInstanceIdentifierGenerator <byte> generator = null) : base(generator ?? new InstanceIdentifierGeneratorByte())
 {
 }
示例#10
0
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator, if present, otherwise will use <see cref="InstanceIdentifierGeneratorInt64"/>.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollectionInt64Cached(IInstanceIdentifierGenerator <long> generator) : base(generator ?? new InstanceIdentifierGeneratorInt64())
 {
 }
 /// <summary>
 /// Creates new instance collection with specified instance identifier generator.
 /// </summary>
 /// <param name="generator">The generator used to create new identifiers.</param>
 public InstanceCollection(IInstanceIdentifierGenerator<TIdentifier> generator)
 {
     Generator = generator ?? throw new ArgumentNullException(nameof(generator));
 }
示例#12
0
 /// <summary>
 /// Creates the collection with the specified identifier generator.
 /// </summary>
 /// <param name="generator">The identifier generator.</param>
 public StringCacheCollection(IInstanceIdentifierGenerator <TIdentifier> generator) : base(generator)
 {
 }