How to

reset stream

Published: 2. February 2014 | Updated: 2. February 2014
License: Microsoft Public License (MS-PL)
Categories: Streams
Tags: C#
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at analyzant.com

Import namespaces

using System.IO;

Code

public static void ResetStream(Stream stream)
{
    stream.Position = 0;
}
Send us feedback about this snippet »



Related Snippets: