Ejemplo n.º 1
0
 /// <summary>
 /// Construct with an existing ObjectStream.
 /// </summary>
 /// <param name="stream">The stream to read.</param>
 /// <exception cref="ArgumentNullException">Thrown if the specified stream is null.</exception>
 public PSDataCollectionReader(PSDataCollectionStream <DataStoreType> stream)
     : base(stream)
 {
     System.Management.Automation.Diagnostics.Assert(stream.ObjectStore != null,
                                                     "Stream should have a valid data store");
     _enumerator = (PSDataCollectionEnumerator <DataStoreType>)stream.ObjectStore.GetEnumerator();
 }
Ejemplo n.º 2
0
 public PSDataCollectionReader(PSDataCollectionStream <DataStoreType> stream) : base(stream)
 {
     this.enumerator = (PSDataCollectionEnumerator <DataStoreType>)stream.ObjectStore.GetEnumerator();
 }