System.IO.IsolatedStorage.TestHelper.ReadAllText C# (CSharp) Méthode

ReadAllText() public static méthode

public static ReadAllText ( this stream ) : string
stream this
Résultat string
        public static string ReadAllText(this IsolatedStorageFileStream stream)
        {
            byte[] buffer = new byte[stream.Length];
            stream.Read(buffer, 0, buffer.Length);
            return Encoding.UTF8.GetString(buffer);
        }

Same methods

TestHelper::ReadAllText ( this isf, string fileName ) : string