/ Published in: VB.NET

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
''' <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
Comments
