System.IO.IsolatedStorage.TestHelper.CreateTestFile C# (CSharp) Метод

CreateTestFile() публичный статический Метод

Simple wrapper to create the given file (and close the handle)
public static CreateTestFile ( this isf, string fileName, string content = null ) : void
isf this
fileName string
content string
Результат void
        public static void CreateTestFile(this IsolatedStorageFile isf, string fileName, string content = null)
        {
            using (var stream = isf.CreateFile(fileName))
            {
                if (content != null)
                    stream.WriteAllText(content);
            }
        }