How to get smallest value from an integer array in

following is the code sample for finding smallest value from an integer array in

 Private Sub SortArrayASC()
        Dim SmallestValue As Integer
        Dim stringdata(2) As Integer
        stringdata(0) = "2"
        stringdata(1) = "1"
        stringdata(2) = "3"
        Dim strCopyArray(2) As Integer
        Array.Copy(stringdata, strCopyArray, stringdata.Length)
        SmallestValue = strCopyArray(0)
  End Sub

Author: Ankur

Have worked primarily in the domain of Calling, CRM and direct advertisers services. My technological forte is Microsoft Technologies especially Dot Net (Visual Studio 2003, 2005, 2008, 2010 and 2012) and Microsoft SQL Server 2000,2005 and 2008 R2. My Area of Expertise is in C#. Net, VB.Net, MS-SQL Server, ASP. Net, Silverlight, HTML, XML, Crystal Report, Active Reports, Infragistics, Component Art, ComponeOne, Lead Tools etc.