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