We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77679f7 commit 959fa25Copy full SHA for 959fa25
1 file changed
Performance-metrices/Find-and-Replace/.NET/Find-and-Replace/Find-and-Replace/Program.cs
@@ -18,7 +18,7 @@ static void Main(string[] args)
18
//Find all occurrences of a misspelled word and replaces with properly spelled word
19
int replacedCount = document.Replace("document", "DocIO", false, false);
20
stopwatch.Stop();
21
- Console.WriteLine(replacedCount);
+ Console.WriteLine($"Count of replaced words in the word Document: " + replacedCount);
22
Console.WriteLine($"Time taken for Replace (string):" + stopwatch.Elapsed.TotalSeconds);
23
//Create file stream
24
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Result.docx"), FileMode.Create, FileAccess.ReadWrite))
0 commit comments