コード例 #1
0
 /// <summary>
 /// Support for <see cref="System.IO.Stream"/> probing.
 /// </summary>
 /// <param name="stream">
 /// The current <see cref="System.IO.Stream"/>.
 /// </param>
 /// <returns>
 /// The <see cref="IProbeStream"/> instance that will probe the current <see cref="System.IO.Stream"/>s.
 /// </returns>
 /// <remarks>
 /// The <paramref name="stream"/> is expected to be markable, that is to say, it has to be of type <see
 /// cref="MarkableForwardOnlyEventingReadStream"/>.
 /// </remarks>
 public static IProbeStream Probe(this System.IO.Stream stream)
 {
     return(StreamProberFactory(stream.EnsureMarkable()));
 }