From aa4b237a98ccc1a8b274ebf1f8a9024e05be4396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20G=C3=B6ls?= <6608231+Abrynos@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:22:10 +0200 Subject: [PATCH] Add Path.GetRandomFileName() (#33) --- JustArchiNET.Madness/PathMadness/Path.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/JustArchiNET.Madness/PathMadness/Path.cs b/JustArchiNET.Madness/PathMadness/Path.cs index 05cf817..2b2dee0 100644 --- a/JustArchiNET.Madness/PathMadness/Path.cs +++ b/JustArchiNET.Madness/PathMadness/Path.cs @@ -65,6 +65,10 @@ public static class Path { [Pure] public static string GetFullPath(string path) => System.IO.Path.GetFullPath(path); + [ContractAnnotation("=>notnull")] + [MadnessType(EMadnessType.Proxy)] + public static string GetRandomFileName() => System.IO.Path.GetRandomFileName(); + #if NETSTANDARD2_1_OR_GREATER [MadnessType(EMadnessType.Proxy)] public static string GetRelativePath(string relativeTo, string path) => System.IO.Path.GetRelativePath(relativeTo, path);