πText - NKS0048
Use TextTools.SplitNewLines()
Context
String
Extended Description
Analysis Comparison
Before the fix
public static void MyFunction()
{
string var = "Hello\r\nWorld!";
var split = var.Split("\r\n");
}After the fix
public static void MyFunction()
{
string var = "Hello\r\nWorld!";
var split = var.SplitNewLines();
}After the fix (alternate)
Suppression
Recommendation
Last updated