If it is just for debugging purposes you should use Debug.WriteLine
instead. This will most likely be a bit faster than using Console.WriteLine
.
Example
Debug.WriteLine("There was an error processing the data.");
More Related Contents:
- Where is likely the performance bug here? [closed]
- Best way to reverse a string
- String vs. StringBuilder
- How slow are .NET exceptions?
- Implementing a log viewer with WPF
- How to get object size in memory? [duplicate]
- Does C# optimize the concatenation of string literals?
- Debug vs. Release performance
- LINQ: Not Any vs All Don’t
- Why does the Contains() operator degrade Entity Framework’s performance so dramatically?
- Detecting network connection speed and bandwidth usage in C#
- String interning in .Net Framework – What are the benefits and when to use interning
- Using lambda expressions for event handlers
- C# vs C – Big performance difference
- Why is LINQ .Where(predicate).First() faster than .First(predicate)?
- Fastest function to generate Excel column letters in C#
- SQLite .NET performance, how to speed up things?
- Is Python slower than Java/C#? [closed]
- How does extern work in C#?
- How to force a number to be in a range in C#? [duplicate]
- Is String.Format as efficient as StringBuilder
- Check if property has attribute
- Why is this F# code so slow?
- async await performance?
- Warm-up when calling methods in C#
- Why is this faster on 64 bit than 32 bit?
- Array bounds check efficiency in .net 4 and above
- Thread.Sleep(0) : What is the normal behavior?
- Performance of Skip (and similar functions, like Take)
- Is BitArray faster in C# for getting a bit value than a simple conjuction with bitwise shift?