Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Last active August 30, 2020 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatthews05/6cda97738f526f9cd8c267267690d3b4 to your computer and use it in GitHub Desktop.
Save pmatthews05/6cda97738f526f9cd8c267267690d3b4 to your computer and use it in GitHub Desktop.
using System;
namespace CSharpLibrary
{
public static class IntLibrary
{
public static bool NumberGreaterThan5(this string value)
{
Int32 intValue = 0;
bool canConvert = Int32.TryParse(value, out intValue);
if (canConvert)
{
if (intValue > 5)
{
return true;
}
}
return false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment