IsNumber
IsNumber
Namespace
Summary== Determines whether a string is a number ==Unit Test==[Fact] public void IsNumber_ShouldReturn_True_For_3() { Assert.True("3".IsNumber()); } [Fact] public void IsNumber_ShouldReturn_True_For_3Point3() { Assert.True("3.3".IsNumber()); } [Fact] public void IsNumber_ShouldReturn_True_For_Neg3() { Assert.True("-3".IsNumber()); } [Fact] public void IsNumber_ShouldReturn_False_For_Foo() { Assert.False("Foo".IsNumber()); } ==Comments
SubSonic 3.0 implements this as an extension method - 2.x uses a static method on SubSonic.Sugar.Numeric.