We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetFullPath
1 parent c4dbc56 commit 2d53b40Copy full SHA for 2d53b40
1 file changed
Common.BasicHelper/Utils/Extensions/StringHelper.cs
@@ -116,4 +116,11 @@ public static void Throw<T>(this string? message) where T : Exception
116
var exp = Activator.CreateInstance(typeof(T), message);
117
throw (exp as T) ?? new Exception(message);
118
}
119
+
120
+ /// <summary>
121
+ /// 获取给定路径的完整路径
122
+ /// </summary>
123
+ /// <param name="path">路径</param>
124
+ /// <returns>完整路径</returns>
125
+ public static string GetFullPath(this string path) => Path.GetFullPath(path);
126
0 commit comments