Alpinely.TownCrier.Tests.IntegrationTests.StreamToString C# (CSharp) 메소드

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

private static StreamToString ( Stream stream ) : string
stream Stream
리턴 string
        private static string StreamToString(Stream stream)
        {
            stream.Position = 0;
            using (var sr = new StreamReader(stream))
            {
                return sr.ReadToEnd();
            }
        }