Return to Snippet

Revision: 34408
at October 22, 2010 03:53 by mecha


Initial Code
''' <summary>
''' Validate integer.
''' </summary>
''' <param name="value">The value.</param>
''' <returns>
''' <c>true</c> if the specified value is integer; otherwise, <c>false</c>.
''' </returns>
<System.Runtime.CompilerServices.Extension()> _
    Public Function IsInteger(ByVal value As String) As Boolean
        If String.IsNullOrEmpty(value) Then
            Return False
        End If
        Dim tempNo As Integer
        Return Integer.TryParse(value, tempNo)
    End Function

Initial URL


Initial Description


Initial Title
Validate Integer Extension Method

Initial Tags


Initial Language
VB.NET