Skip to content

Instantly share code, notes, and snippets.

@Baezu
Baezu / Numeric Suffixes.cs
Created February 27, 2012 09:41
Numeric Suffixes
class Program{ static void Main()
{
// Use long suffix.
long l1 = 10000L;
// Use double suffix.
double d1 = 123.764D;
// Use float suffix.
float f1 = 100.50F;
@Baezu
Baezu / IsNumeric Gist.cs
Created February 25, 2012 00:08
Functio to check if a string is numeric
/// <summary>
/// Checks to see if the input only contains Numbers
/// </summary>
/// <param name="anyString" />Input In</param>
/// <returns>True/False</returns>
public static bool IsNumeric(string anyString)
{
if (String.IsNullOrEmpty(anyString))
{
anyString = "";