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