trunk/src/LythumOSL.Core/Extensions/StringExtensions.cs
/// <summary>
/// Method checks for null, do this is int and for less than 1 value
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
Method checks for null, do this is int and for less than 1 value
Method checks for null do this is int and for less than 1 value
public static bool IsIntNonZero (this string value)
		{
			if (string.IsNullOrEmpty (value))
				return false;
			int result;
			if (int.TryParse (value, out result))
			{
				return result > 0;
			}
			else
			{
				return false;
			}
		}
public static bool IsIntNonZero ( this string value ) { if ( string . IsNullOrEmpty ( value ) ) return false ; int result ; if ( int . TryParse ( value , out result ) ) { return result > 0 ; } else { return false ; } }
Method checks for null, do this is int and for less than 1 value
Method checks for null do this is int and for less than 1 value
None
string
this
value
None