<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FClass_Module%2FStructure</id>
		<title>VB.Net Tutorial/Class Module/Structure - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FClass_Module%2FStructure"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Structure&amp;action=history"/>
		<updated>2026-04-05T05:53:16Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Structure&amp;diff=3433&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Structure&amp;diff=3433&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Structure&amp;diff=3434&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Class_Module/Structure&amp;diff=3434&amp;oldid=prev"/>
				<updated>2010-05-26T12:55:27Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==By value or by reference==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
Public Class YourClass&lt;br /&gt;
   Public Name As String&lt;br /&gt;
   Public GPA As Double&lt;br /&gt;
End Class&lt;br /&gt;
Public Structure YourStructure&lt;br /&gt;
   Public Name As String&lt;br /&gt;
   Public GPA As Double&lt;br /&gt;
End Structure&lt;br /&gt;
Public Class Test&lt;br /&gt;
   Public Shared Sub Main()&lt;br /&gt;
      Dim valueByRef As New YourClass()&lt;br /&gt;
      Dim valueByValue As New YourStructure()&lt;br /&gt;
      valueByRef.Name = &amp;quot;Jill&amp;quot;&lt;br /&gt;
      valueByRef.GPA = 92.3&lt;br /&gt;
      valueByValue.Name = &amp;quot;Jill&amp;quot;&lt;br /&gt;
      valueByValue.GPA = 92.3&lt;br /&gt;
      Dim ref2 As YourClass = valueByRef&lt;br /&gt;
      Dim value2 As YourStructure = valueByValue&lt;br /&gt;
      ref2.GPA += 2&lt;br /&gt;
      value2.GPA += 2&lt;br /&gt;
      Console.WriteLine(&amp;quot;{0}&amp;quot;s GPA is: {1}&amp;quot;, valueByRef.Name, valueByRef.GPA)&lt;br /&gt;
      Console.WriteLine(&amp;quot;{0}&amp;quot;s GPA is: {1}&amp;quot;, valueByValue.Name, valueByValue.GPA)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Jill&amp;quot;s GPA is: 94.3&lt;br /&gt;
Jill&amp;quot;s GPA is: 92.3&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Class Vs Structure in ByValue and ByRef==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System&lt;br /&gt;
Public Enum Country&lt;br /&gt;
  US = 1&lt;br /&gt;
  CA = 2&lt;br /&gt;
End Enum&lt;br /&gt;
&lt;br /&gt;
Public Class AClass&lt;br /&gt;
  Public Name As String&lt;br /&gt;
  Public Status As Country&lt;br /&gt;
End Class&lt;br /&gt;
Public Structure AStruct&lt;br /&gt;
  Public Name As String&lt;br /&gt;
  Public Status As Country&lt;br /&gt;
End Structure&lt;br /&gt;
Public Module Test&lt;br /&gt;
  Public Sub ChangeName_Obj_ByVal(ByVal details As AClass,ByVal NewName As String)&lt;br /&gt;
    details.Name = NewName&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub ChangeName_Obj_ByRef(ByRef details As AClass,ByVal NewName As String)&lt;br /&gt;
    details.Name = NewName&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub ChangeName_Struct_ByVal(ByVal details As AStruct,ByVal NewName As String)&lt;br /&gt;
    details.Name = NewName&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub ChangeName_Struct_ByRef(ByRef details As AStruct,ByVal NewName As String)&lt;br /&gt;
    details.Name = NewName&lt;br /&gt;
  End Sub&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim classInstance As AClass = New AClass()&lt;br /&gt;
    Dim structInstance As AStruct = New AStruct()&lt;br /&gt;
    classInstance.Name = &amp;quot;A&amp;quot;&lt;br /&gt;
    classInstance.Status = Country.CA&lt;br /&gt;
    structInstance.Name = &amp;quot;B&amp;quot;&lt;br /&gt;
    structInstance.Status = Country.CA&lt;br /&gt;
    Console.WriteLine(&amp;quot;{0}, {1}&amp;quot;, classInstance.Name, classInstance.Status)&lt;br /&gt;
    Console.WriteLine(&amp;quot;{0}, {1}&amp;quot;, structInstance.Name, structInstance.Status)&lt;br /&gt;
    Console.WriteLine()&lt;br /&gt;
    ChangeName_Obj_ByVal(classInstance, &amp;quot;AAAA&amp;quot;)&lt;br /&gt;
    ChangeName_Struct_ByVal(structInstance, &amp;quot;BBBB&amp;quot;)&lt;br /&gt;
   &lt;br /&gt;
    Console.WriteLine(&amp;quot;{0},{1}&amp;quot;, classInstance.Name, classInstance.Status)&lt;br /&gt;
    Console.WriteLine(&amp;quot;{0},{1}&amp;quot;, structInstance.Name, structInstance.Status)&lt;br /&gt;
    Console.WriteLine()&lt;br /&gt;
    ChangeName_Obj_ByRef(classInstance, &amp;quot;AAAA&amp;quot;)&lt;br /&gt;
    ChangeName_Struct_ByRef(structInstance, &amp;quot;BBBB&amp;quot;)&lt;br /&gt;
    Console.WriteLine(&amp;quot;{0}, {1}&amp;quot;, classInstance.Name, classInstance.Status)&lt;br /&gt;
    Console.WriteLine(&amp;quot;{0}, {1}&amp;quot;, structInstance.Name, structInstance.Status)&lt;br /&gt;
  End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;A, CA&lt;br /&gt;
B, CA&lt;br /&gt;
AAAA,CA&lt;br /&gt;
B,CA&lt;br /&gt;
AAAA, CA&lt;br /&gt;
BBBB, CA&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Define and use Structure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Structure CheckRecord&lt;br /&gt;
    Dim intCheckNumber As Integer&lt;br /&gt;
    Dim dteCheckDate As Date&lt;br /&gt;
    Dim sngCheckAmount As Single&lt;br /&gt;
    Dim strCheckPaidTo As String&lt;br /&gt;
End Structure&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Dim udtCheck As CheckRecord&lt;br /&gt;
        &amp;quot;Add data to the structure.&lt;br /&gt;
        udtCheck.intCheckNumber = 275&lt;br /&gt;
        udtCheck.dteCheckDate = #9/12/2001#&lt;br /&gt;
        udtCheck.sngCheckAmount = 104.25&lt;br /&gt;
        udtCheck.strCheckPaidTo = &amp;quot;Gas Co.&amp;quot;&lt;br /&gt;
        Console.WriteLine(&amp;quot;CHECK INFORMATION&amp;quot;)&lt;br /&gt;
        Console.WriteLine(&amp;quot;Number: &amp;quot; &amp;amp; udtCheck.intCheckNumber)&lt;br /&gt;
        Console.WriteLine(&amp;quot;Date: &amp;quot; &amp;amp; udtCheck.dteCheckDate)&lt;br /&gt;
        Console.WriteLine(&amp;quot;Amount: &amp;quot; &amp;amp; udtCheck.sngCheckAmount)&lt;br /&gt;
        Console.WriteLine(&amp;quot;Paid To: &amp;quot; &amp;amp; udtCheck.strCheckPaidTo)&lt;br /&gt;
&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;CHECK INFORMATION&lt;br /&gt;
Number: 275&lt;br /&gt;
Date: 12/09/2001&lt;br /&gt;
Amount: 104.25&lt;br /&gt;
Paid To: Gas Co.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Define and use structure with modifier==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
Public Structure Coordinates&lt;br /&gt;
   Public x As Double&lt;br /&gt;
   Public y As Double&lt;br /&gt;
End Structure&lt;br /&gt;
Public Module Test&lt;br /&gt;
   Public Sub Main()&lt;br /&gt;
      Dim coord As Coordinates &amp;quot; The structure as a whole&lt;br /&gt;
      &lt;br /&gt;
      coord.x = 10.2 &amp;quot; x member&lt;br /&gt;
      coord.y = 25.1 &amp;quot; y member&lt;br /&gt;
      Console.WriteLine(coord.ToString &amp;amp; &amp;quot;: x=&amp;quot; &amp;amp; coord.x &amp;amp; &amp;quot;, y=&amp;quot; &amp;amp; coord.y)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Coordinates: x=10.2, y=25.1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Define Structure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
 Imports System&lt;br /&gt;
     Public Structure Location&lt;br /&gt;
         Private x As Integer&lt;br /&gt;
         Private y As Integer&lt;br /&gt;
         Public Sub New(ByVal xCoordinate As Integer, ByVal yCoordinate As Integer)&lt;br /&gt;
             x = xCoordinate&lt;br /&gt;
             y = yCoordinate&lt;br /&gt;
         End Sub&lt;br /&gt;
         Public Property XValue( ) As Integer&lt;br /&gt;
             Get&lt;br /&gt;
                 Return x&lt;br /&gt;
             End Get&lt;br /&gt;
             Set(ByVal Value As Integer)&lt;br /&gt;
                 x = Value&lt;br /&gt;
             End Set&lt;br /&gt;
         End Property&lt;br /&gt;
         Public Property YValue( ) As Integer&lt;br /&gt;
             Get&lt;br /&gt;
                 Return y&lt;br /&gt;
             End Get&lt;br /&gt;
             Set(ByVal Value As Integer)&lt;br /&gt;
                 y = Value&lt;br /&gt;
             End Set&lt;br /&gt;
         End Property&lt;br /&gt;
         Public Overrides Function ToString( ) As String&lt;br /&gt;
             Return [String].Format(&amp;quot;{0}, {1}&amp;quot;, x, y)&lt;br /&gt;
         End Function&lt;br /&gt;
     End Structure&lt;br /&gt;
     Class Tester&lt;br /&gt;
         Public Shared Sub myFunc(ByVal loc As Location)&lt;br /&gt;
             loc.XValue = 50&lt;br /&gt;
             loc.YValue = 100&lt;br /&gt;
             Console.WriteLine(&amp;quot;Loc1 location: {0}&amp;quot;, loc)&lt;br /&gt;
         End Sub &lt;br /&gt;
         Shared Sub Main( )&lt;br /&gt;
             Dim loc1 As New Location(200, 300)&lt;br /&gt;
             Console.WriteLine(&amp;quot;Loc1 location: {0}&amp;quot;, loc1)&lt;br /&gt;
             Dim loc2 As New Location( )&lt;br /&gt;
             Console.WriteLine(&amp;quot;Loc2 location: {0}&amp;quot;, loc2)&lt;br /&gt;
             myFunc(loc1)&lt;br /&gt;
             Console.WriteLine(&amp;quot;Loc1 location: {0}&amp;quot;, loc1)&lt;br /&gt;
         End Sub &lt;br /&gt;
     End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Loc1 location: 200, 300&lt;br /&gt;
Loc2 location: 0, 0&lt;br /&gt;
Loc1 location: 50, 100&lt;br /&gt;
Loc1 location: 200, 300&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Structure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Structure Money&lt;br /&gt;
   Private centsAmount As Integer&lt;br /&gt;
   Public Sub New(ByVal amount As Double)&lt;br /&gt;
       Me.centsAmount = CInt(amount * 100)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Structure&lt;br /&gt;
Module MyModule&lt;br /&gt;
   Sub Main()&lt;br /&gt;
       Dim freebie As Money&lt;br /&gt;
       Dim carPrice As Money = New Money(3.95)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==structure implements interface==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System&lt;br /&gt;
Module MyModule&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim salaries(4) As Salary&lt;br /&gt;
    salaries(0) = New Salary(9)&lt;br /&gt;
    salaries(1) = New Salary(4)&lt;br /&gt;
    salaries(2) = New Salary(8)&lt;br /&gt;
    salaries(3) = salaries(2)&lt;br /&gt;
    salaries(4) = New Salary(6)&lt;br /&gt;
    Console.WriteLine(&amp;quot;Unsorted array:&amp;quot;)&lt;br /&gt;
    Dim salary As Salary&lt;br /&gt;
    For Each salary In salaries&lt;br /&gt;
      Console.WriteLine(&amp;quot;{0}&amp;quot;, salary)&lt;br /&gt;
    Next&lt;br /&gt;
    Array.Sort(salaries)&lt;br /&gt;
    Console.WriteLine(vbCrLf &amp;amp; &amp;quot;Sorted array:&amp;quot;)&lt;br /&gt;
    For Each salary In salaries&lt;br /&gt;
      Console.WriteLine(&amp;quot;{0}&amp;quot;, salary)&lt;br /&gt;
    Next&lt;br /&gt;
  End Sub&lt;br /&gt;
End Module&lt;br /&gt;
Structure Salary&lt;br /&gt;
  Implements IComparable&lt;br /&gt;
  Private value As Integer&lt;br /&gt;
  Public Sub New(ByVal amount As Double)&lt;br /&gt;
    Me.value = CInt(amount * 100)&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Function CompareTo(ByVal other As Object) As Integer Implements IComparable.rupareTo&lt;br /&gt;
    Dim m2 As Salary = CType(other, Salary)&lt;br /&gt;
    If Me.value &amp;lt; m2.value Then&lt;br /&gt;
      Return -1&lt;br /&gt;
    ElseIf Me.value = m2.value Then&lt;br /&gt;
      Return 0&lt;br /&gt;
    Else&lt;br /&gt;
      Return +1&lt;br /&gt;
    End If&lt;br /&gt;
  End Function&lt;br /&gt;
  Public Overrides Function ToString() As String&lt;br /&gt;
    Return Me.value&lt;br /&gt;
  End Function&lt;br /&gt;
End Structure&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Unsorted array:&lt;br /&gt;
900&lt;br /&gt;
400&lt;br /&gt;
800&lt;br /&gt;
800&lt;br /&gt;
600&lt;br /&gt;
Sorted array:&lt;br /&gt;
400&lt;br /&gt;
600&lt;br /&gt;
800&lt;br /&gt;
800&lt;br /&gt;
900&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use Structure as Function parameter==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;public Structure CustomerBalance&lt;br /&gt;
    Dim decBalSavings As Decimal&lt;br /&gt;
    Dim decBalChecking As Decimal&lt;br /&gt;
End Structure&lt;br /&gt;
&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Dim udtBalance As CustomerBalance&lt;br /&gt;
        &lt;br /&gt;
        udtBalance = GetCustomerBalance(1)&lt;br /&gt;
        Console.WriteLine(udtBalance.decBalChecking)&lt;br /&gt;
        Console.WriteLine(udtBalance.decBalSavings)&lt;br /&gt;
   End Sub&lt;br /&gt;
   Shared Function GetCustomerBalance(ByVal intCustomerID As Integer) As CustomerBalance&lt;br /&gt;
        Dim udtBalance As CustomerBalance&lt;br /&gt;
        udtBalance.decBalChecking = CDec(1000 + 4000 * Rnd())&lt;br /&gt;
        udtBalance.decBalSavings = CDec(1000 + 15000 * Rnd())&lt;br /&gt;
        Return udtBalance&lt;br /&gt;
    End Function&lt;br /&gt;
   &lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;3822.19&lt;br /&gt;
9001.36&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use With and Structure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Collections&lt;br /&gt;
Structure Person&lt;br /&gt;
    Dim strLastName As String&lt;br /&gt;
    Dim strFirstName As String&lt;br /&gt;
    Dim strPhone As String&lt;br /&gt;
    Dim strEMail As String&lt;br /&gt;
End Structure&lt;br /&gt;
&lt;br /&gt;
public class Test&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Dim alPersons As New ArrayList&lt;br /&gt;
        Dim udtPerson As New Person&lt;br /&gt;
        &amp;quot;Add the first person.&lt;br /&gt;
        With udtPerson&lt;br /&gt;
            .strLastName = &amp;quot;S&amp;quot;&lt;br /&gt;
            .strFirstName = &amp;quot;J&amp;quot;&lt;br /&gt;
            .strPhone = &amp;quot;5&amp;quot;&lt;br /&gt;
            .strEMail = &amp;quot;j@s.ru&amp;quot;&lt;br /&gt;
        End With&lt;br /&gt;
        alPersons.Add(udtPerson)&lt;br /&gt;
        &amp;quot;Add the second person.&lt;br /&gt;
        With udtPerson&lt;br /&gt;
            .strLastName = &amp;quot;J&amp;quot;&lt;br /&gt;
            .strFirstName = &amp;quot;S&amp;quot;&lt;br /&gt;
            .strPhone = &amp;quot;5&amp;quot;&lt;br /&gt;
            .strEMail = &amp;quot;s@s.ru&amp;quot;&lt;br /&gt;
        End With&lt;br /&gt;
        alPersons.Add(udtPerson)&lt;br /&gt;
        &amp;quot;Create the third person.&lt;br /&gt;
        With udtPerson&lt;br /&gt;
            .strLastName = &amp;quot;J&amp;quot;&lt;br /&gt;
            .strFirstName = &amp;quot;K&amp;quot;&lt;br /&gt;
            .strPhone = &amp;quot;5&amp;quot;&lt;br /&gt;
            .strEMail = &amp;quot;k@s.ru&amp;quot;&lt;br /&gt;
        End With&lt;br /&gt;
        &amp;quot;Insert the third person, but first check if they already exists.&lt;br /&gt;
        If Not alPersons.Contains(udtPerson) Then&lt;br /&gt;
            alPersons.Insert(1, udtPerson)&lt;br /&gt;
        End If&lt;br /&gt;
        &amp;quot;Remove the first person.&lt;br /&gt;
        alPersons.RemoveAt(0)&lt;br /&gt;
        &amp;quot;Display the array list values.&lt;br /&gt;
        Console.WriteLine(&amp;quot;The array list contains &amp;quot; &amp;amp; alPersons.Count &amp;amp; &amp;quot; elements.&amp;quot;)&lt;br /&gt;
        For Each udtPerson In alPersons&lt;br /&gt;
            Console.WriteLine(&amp;quot;NAME: &amp;quot; &amp;amp; udtPerson.strFirstName &amp;amp; &amp;quot; &amp;quot; &amp;amp; udtPerson.strLastName)&lt;br /&gt;
        Next udtPerson&lt;br /&gt;
&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;The array list contains 2 elements.&lt;br /&gt;
NAME: K J&lt;br /&gt;
NAME: S J&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>