Skip to content

Instantly share code, notes, and snippets.

@suzhou01
suzhou01 / Numeric.cs
Created March 31, 2016 06:49 — forked from cimnine/Numeric.cs
A way to check if a type is numeric in C#
using System;
namespace ch.cimnine.Util
{
public sealed class Numeric
{
/// <summary>
/// Determines if a type is numeric. Nullable numeric types are considered numeric.
/// </summary>
/// <remarks>