Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Microsoft.Research/Contracts/MsCorlib/System.IO.Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public static string GetRandomFileName()

public static string GetTempFileName()
{
Contract.Ensures(!string.IsNullOrWhitespace(Contract.Result<string>()));
Contract.Ensures(Contract.Result<string>().Length >= 4);
Contract.Ensures(Contract.Result<string>() != null);
Contract.Ensures(Contract.Result<string>().Length >= 4, @" length >= 4 since file name must end with '.TMP'");
Contract.EnsuresOnThrow<System.IO.IOException>(true, @"An I/O error occurs, such as no unique temporary file name is available. - or - This method was unable to create a temporary file.");
return default(string);
}
Expand Down