ReadStream() 정적인 개인적인 메소드

static private ReadStream ( Stream stream ) : byte[]
stream Stream
리턴 byte[]
예제 #1
0
 public byte[] GetResourceData()
 {
     if (this.stream != null)
     {
         return(EmbeddedResource.ReadStream(this.stream));
     }
     if (this.data != null)
     {
         return(this.data);
     }
     if (!this.offset.HasValue)
     {
         throw new InvalidOperationException();
     }
     return(this.reader.GetManagedResourceStream(this.offset.Value).ToArray());
 }