Files - NKS0021
Use Checking.Rooted()
Context
String
Extended Description
Analysis Comparison
Before the fix
public static void MyFunction()
{
Path.IsPathRooted("C:/test.txt");
}Use Checking.Rooted()
public static void MyFunction()
{
Path.IsPathRooted("C:/test.txt");
}public static void MyFunction()
{
FilesystemTools.Rooted("C:/test.txt");
}