Beispiel #1
0
 public Stream this[int stream]
 {
     get
     {
         Stream result = null;
         if (stream >= 0 && stream < 2)
         {
             result = this.streams[stream];
             if (result.IsNull())
             {
                 Binding.Stream backendStream = this.backend[stream];
                 if (backendStream.NotNull())
                 {
                     result = this.streams[stream] = new Stream(this, backendStream);
                 }
             }
         }
         return(result);
     }
 }
Beispiel #2
0
 internal Stream(Device device, Binding.Stream backend)
 {
     this.device  = device;
     this.backend = backend;
 }