DotRepo.CodeAnalysis
String Concatenation → Interpolation
"Hello" + " " + name + "!"
Input (e.g., "Hello" + " " + name + "!")
Input (e.g., "Hello" + " " + name + "!")
$"Hello {name}!"
Output
Output
String.Format → Interpolation
String.Format("Hello {0}!", name)
Input (e.g., String.Format("Hello {0}!", name))
Input (e.g., String.Format("Hello {0}!", name))
$"Hello {name}!"
Output
Output
Dynamic Code Execution
Write your own string transformation methods. Security validation included.
Method Name
Method Name
public static string ConvertToTitle(string input) { if (string.IsNullOrEmpty(input)) return input; var words = input.Split(' ', StringSplitOptions.RemoveEmptyEntries); var result = string.Join(" ", words.Select(word => char.ToUpper(word[0]) + word.Substring(1).ToLower())); return $"Title: {result}"; }
Source Code
Source Code
hello world from dynamic code
Input Text
Input Text
Output
Output
Execute Code
An unhandled error has occurred.
Reload
🗙