<?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%2FGenerics%2FGeneric_Method</id>
		<title>VB.Net Tutorial/Generics/Generic Method - История изменений</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%2FGenerics%2FGeneric_Method"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Generics/Generic_Method&amp;action=history"/>
		<updated>2026-04-05T02:21:36Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Generics/Generic_Method&amp;diff=3744&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/Generics/Generic_Method&amp;diff=3744&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/Generics/Generic_Method&amp;diff=3745&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/Generics/Generic_Method&amp;diff=3745&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:32Z</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;==Generic method maximum returns the largest of three objects==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Module MaximumTest&lt;br /&gt;
   Sub Main()&lt;br /&gt;
      Console.WriteLine(5, Maximum(3, 4, 5))&lt;br /&gt;
      Console.WriteLine(Maximum(6.6, 8.8, 7.7))&lt;br /&gt;
      Console.WriteLine(Maximum(&amp;quot;pear&amp;quot;, &amp;quot;apple&amp;quot;, &amp;quot;orange&amp;quot;))&lt;br /&gt;
   End Sub&lt;br /&gt;
   &lt;br /&gt;
   Public Function Maximum(Of T As IComparable(Of T))(ByVal x As T, ByVal y As T, ByVal z As T) As&lt;br /&gt;
T&lt;br /&gt;
      Dim max As T = x&lt;br /&gt;
      If y.rupareTo(max) &amp;gt; 0 Then&lt;br /&gt;
         max = y&lt;br /&gt;
      End If&lt;br /&gt;
      If z.rupareTo(max) &amp;gt; 0 Then&lt;br /&gt;
         max = z&lt;br /&gt;
      End If&lt;br /&gt;
      Return max&lt;br /&gt;
   End Function&lt;br /&gt;
End Module&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;5&lt;br /&gt;
8.8&lt;br /&gt;
pear&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using generic methods to print arrays of different types==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Module Tester&lt;br /&gt;
   Sub Main()&lt;br /&gt;
      Dim integerArray As Integer() = {1, 2, 3, 4, 5, 6}&lt;br /&gt;
      Dim doubleArray As Double() = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7}&lt;br /&gt;
      Dim charArray As Char() = {&amp;quot;H&amp;quot;c, &amp;quot;E&amp;quot;c, &amp;quot;L&amp;quot;c, &amp;quot;L&amp;quot;c, &amp;quot;O&amp;quot;c}&lt;br /&gt;
      PrintArray(integerArray)&lt;br /&gt;
      PrintArray(doubleArray)&lt;br /&gt;
      PrintArray(charArray) &lt;br /&gt;
   End Sub&lt;br /&gt;
   &lt;br /&gt;
   Public Sub PrintArray(Of E)(ByVal inputArray() As E)&lt;br /&gt;
      For Each element As E In inputArray&lt;br /&gt;
         Console.Write(element.ToString() &amp;amp; &amp;quot; &amp;quot;)&lt;br /&gt;
      Next element&lt;br /&gt;
      Console.WriteLine(vbCrLf)&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;1 2 3 4 5 6&lt;br /&gt;
1.1 2.2 3.3 4.4 5.5 6.6 7.7&lt;br /&gt;
H E L L O&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>