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
3 changes: 2 additions & 1 deletion Microsoft.Research/Contracts/MsCorlib/System.IO.Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ public static string GetRandomFileName()

public static string GetTempFileName()
{
Contract.Ensures(Contract.Result<string>() != null);
Contract.Ensures(!string.IsNullOrWhitespace(Contract.Result<string>()));
Contract.Ensures(Contract.Result<string>().Length >= 4);
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