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