As already said it depends what you are trying to do…
So you can consider one of these… check the links:
There may be other possible options based on your needs…
More Related Contents:
- Best way to reverse a string
- Find control by name from Windows Forms controls
- C# Download all files and subdirectories through FTP
- Difference in months between two dates
- Does C# 8 support the .NET Framework?
- Best way to remove duplicate entries from a data table
- Is there an easy way to return a string repeated X number of times?
- Is there a built-in method to compare collections?
- Task continuation on UI thread
- How to compare values of generic types?
- Authorization header is lost on redirect
- String interning in .Net Framework – What are the benefits and when to use interning
- Generate N random and unique numbers within a range
- A .net disassembler/decompiler [closed]
- Revisiting Task.ConfigureAwait(continueOnCapturedContext: false)
- How to change the color of winform DataGridview header?
- High memory consumption with Enumerable.Range?
- Convert string to Color in C#
- Use linq to generate direct update without select
- End of Stream encountered before parsing was completed?
- Get the decimal part from a double
- .NET graph library around? [closed]
- Using extension methods in .NET 2.0?
- Exception.Message vs Exception.ToString()
- Max return value if empty query
- Get sum of two columns in one LINQ query
- IEnumerable and order
- How can I use escape characters with string interpolation in C# 6?
- Convert DateTime to long and also the other way around
- Resharper: vars