Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How can I String.Format a TimeSpan object with a custom format in .NET?

What is the recommended way of formatting TimeSpan objects into a string with a custom format?

c# .net string time formatting
Are there .NET implementation of TLS 1.2?

Since I just discovered that RFC 5425 requires TLS 1.2 to be used, and that .NET doesn't yet support it, I wonder …

.net ssl
How to check if object has been disposed in C#

Possible Duplicate: How does one tell if an IDisposable object reference is disposed? Is there a method to check if …

c# .net dispose
Why does .NET foreach loop throw NullRefException when collection is null?

So I frequently run into this situation... where Do.Something(...) returns a null collection, like so: int[] returnArray = Do.Something(...); …

c# .net
Check if a property exists in a class

I try to know if a property exist in a class, I tried this : public static bool HasProperty(this object …

c# .net reflection
How to convert WebResponse.GetResponseStream return into a string?

I see many examples but all of them read them into byte arrays or 256 chars at a time, slowly. Why? …

c# .net string httpwebresponse
Currency format for display

Is there a way to format the correct currency representation for a country? Example UK -£127.54 Netherlands € 127,54- USA $127.54 etc.. …

c# .net asp.net globalization currency
How to create/make rounded corner buttons in WPF?

I need to create a rounded corner glossy button in WPF. Can anyone please explain me what steps are needed?

.net wpf button styles wpf-controls
How do I find the stack trace in Visual Studio?

I ask because I couldn't find the stack trace in Visual Studio, while debugging an exception that occurred.

.net visual-studio debugging exception-handling stack-trace
How to decode JWT Token?

I don't understand how this library works. Could you help me please ? Here is my simple code : public void TestJwtSecurityTokenHandler() { …

c# .net jwt