If you are curious, this is what Double.IsNaN
looks like:
public static bool IsNaN(double d)
{
return (d != d);
}
Funky, huh?
More Related Contents:
- How to create an object during runtime in .net
- How to build a query string for a URL in C#?
- Creating a DateTime in a specific Time Zone in c#
- What’s the best way of implementing a thread-safe Dictionary?
- How can I send emails through SSL SMTP with the .NET Framework?
- Way to have String.Replace only hit “whole words”
- Detect target framework version at compile time
- How to get the index of an element in an IEnumerable?
- Get size of file on disk
- Json.NET serialize object with root name
- C# “internal” access modifier when doing unit testing
- The opposite of Intersect()
- When to use IList and when to use List
- Async/Await vs Threads
- How to serialize/deserialize simple classes to XML and back
- Fastest way to add new node to end of an xml?
- How to Get XML Node from XDocument
- How to Draw a Rounded Rectangle with WinForms (.NET)?
- Cannot implicitly convert type ‘System.Collections.Generic.IEnumerable’ to ‘System.Collections.Generic.List
- Total number of items defined in an enum
- Protect .NET code from reverse engineering?
- string.Empty vs null.Which one do you use?
- How do I debug .NET 4.6 framework source code in Visual Studio 2017?
- .NET Short Unique Identifier
- How do you get XML comments to appear in a different project (dll)?
- Expression for Type members results in different Expressions (MemberExpression, UnaryExpression)
- Differences in development between .NET and Mono
- When is the best place to use Task.Result instead of awaiting Task
- Formatting Large Numbers with .NET
- What does “Beta: Use Unicode UTF-8 for worldwide language support” actually do?