System.Xml.Tests.XmlSystemPathResolverTests.GetNonExistentFileName C# (CSharp) Method

GetNonExistentFileName() private static method

private static GetNonExistentFileName ( ) : string
return string
        private static string GetNonExistentFileName()
        {
            return Enumerable.Range(0, k_getUniqueFileNameAttempts).Select(x => Path.GetRandomFileName()).First(fileName => !File.Exists(fileName));
        }