<?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_by_API%2FSystem.Collections.Generic%2FDictionary</id>
		<title>VB.Net by API/System.Collections.Generic/Dictionary - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_by_API%2FSystem.Collections.Generic%2FDictionary"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Collections.Generic/Dictionary&amp;action=history"/>
		<updated>2026-04-05T06:49:36Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Collections.Generic/Dictionary&amp;diff=2245&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_by_API/System.Collections.Generic/Dictionary&amp;diff=2245&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:16Z</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_by_API/System.Collections.Generic/Dictionary&amp;diff=2246&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_by_API/System.Collections.Generic/Dictionary&amp;diff=2246&amp;oldid=prev"/>
				<updated>2010-05-26T12:50:20Z</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;==Dictionary.Add==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
 &lt;br /&gt;
Option Strict On&lt;br /&gt;
Imports System.Collections.Generic&lt;br /&gt;
Public Module modMain&lt;br /&gt;
   Private employees As Dictionary(Of String, Employee)&lt;br /&gt;
   Public Sub Main()&lt;br /&gt;
      employees = New Dictionary(Of String, Employee)&lt;br /&gt;
      employees.Add(&amp;quot;name&amp;quot;,New Employee(&amp;quot;name&amp;quot;, &amp;quot;1&amp;quot;))&lt;br /&gt;
      employees.Add(&amp;quot;name1&amp;quot;,New Employee(&amp;quot;name1&amp;quot;, &amp;quot;1&amp;quot;))&lt;br /&gt;
      Console.WriteLine(&amp;quot;There are {0} employees now on file. They are:&amp;quot;,employees.Count)&lt;br /&gt;
      For Each pair As KeyValuePair(Of String, Employee) In Employees&lt;br /&gt;
         Console.WriteLine(&amp;quot; {0}: {1}&amp;quot;, pair.Key, pair.Value.Name)&lt;br /&gt;
      Next&lt;br /&gt;
   End Sub&lt;br /&gt;
      &lt;br /&gt;
End Module&lt;br /&gt;
Public Class Employee&lt;br /&gt;
   Private empName As String&lt;br /&gt;
   Private empID As String&lt;br /&gt;
   Public Sub New(name As String, ID As String)&lt;br /&gt;
      Me.empName = name&lt;br /&gt;
      Me.empID = ID&lt;br /&gt;
   End Sub&lt;br /&gt;
   Public Property Name() As String&lt;br /&gt;
      Get&lt;br /&gt;
         Return Me.empName&lt;br /&gt;
      End Get&lt;br /&gt;
      Set&lt;br /&gt;
         Me.empName = Value&lt;br /&gt;
      End Set&lt;br /&gt;
   End Property&lt;br /&gt;
   Public Property ID As String&lt;br /&gt;
      Get&lt;br /&gt;
         return Me.empID&lt;br /&gt;
      End Get&lt;br /&gt;
      Set&lt;br /&gt;
         Me.empID = Value&lt;br /&gt;
      End Set&lt;br /&gt;
   End Property&lt;br /&gt;
End Class&lt;br /&gt;
        &lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Dictionary.Item==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System.Collections.Generic&lt;br /&gt;
Public Class GenericTest&lt;br /&gt;
   Public Shared Sub Main()&lt;br /&gt;
      Dim education As New Dictionary(Of String, String)&lt;br /&gt;
      education.Add(&amp;quot;BA&amp;quot;, &amp;quot;Bachelor of Arts&amp;quot;)&lt;br /&gt;
      education.Add(&amp;quot;BS&amp;quot;, &amp;quot;Bachelor of Science&amp;quot;)&lt;br /&gt;
      education.Add(&amp;quot;MA&amp;quot;, &amp;quot;Master of Arts&amp;quot;)&lt;br /&gt;
      education.Add(&amp;quot;MS&amp;quot;, &amp;quot;Master of Science&amp;quot;)&lt;br /&gt;
      education.Add(&amp;quot;MPhil&amp;quot;, &amp;quot;Master of Philosophy&amp;quot;)&lt;br /&gt;
      education.Add(&amp;quot;PhD&amp;quot;, &amp;quot;Doctor of Philosophy&amp;quot;)&lt;br /&gt;
      Console.WriteLine(education.Item(&amp;quot;BS&amp;quot;))&lt;br /&gt;
      Console.WriteLine()&lt;br /&gt;
      For Each pair As KeyValuePair(Of String, String) In education&lt;br /&gt;
         Console.WriteLine(pair.Value)&lt;br /&gt;
      Next&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==New Dictionary==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;  &lt;br /&gt;
Imports System.Collections.Generic&lt;br /&gt;
Public Structure Employee&lt;br /&gt;
   Dim Name As String&lt;br /&gt;
   Dim HireDate As Date&lt;br /&gt;
   Dim BirthDate As Date&lt;br /&gt;
End Structure&lt;br /&gt;
Public Module Test&lt;br /&gt;
   Public Sub Main()&lt;br /&gt;
      Dim employees As New Dictionary(of String, Employee)&lt;br /&gt;
      Dim dateToFind As Date&lt;br /&gt;
      Dim input As String&lt;br /&gt;
      Dim emp As New Employee&lt;br /&gt;
      emp.Name = &amp;quot;S&amp;quot;&lt;br /&gt;
      emp.HireDate = #1/2/2003#&lt;br /&gt;
      emp.BirthDate = #7/12/1977#&lt;br /&gt;
      employees.Add(emp.Name, emp)&lt;br /&gt;
      emp.Name = &amp;quot;A&amp;quot;&lt;br /&gt;
      emp.HireDate = #8/18/1999#&lt;br /&gt;
      emp.BirthDate = #3/16/1964#&lt;br /&gt;
      employees.Add(emp.Name, emp)&lt;br /&gt;
      emp.Name = &amp;quot;B&amp;quot;&lt;br /&gt;
      emp.HireDate = #3/1/1987#&lt;br /&gt;
      emp.BirthDate = #11/12/1955#&lt;br /&gt;
      employees.Add(emp.Name, emp)&lt;br /&gt;
&lt;br /&gt;
      dateToFind = CDate(&amp;quot;7/12/1977&amp;quot;)&lt;br /&gt;
      For Each employee As KeyValuePair(of String, Employee) In employees&lt;br /&gt;
         If Month(employee.Value.BirthDate) = Month(dateToFind) AndAlso Day(employee.Value.BirthDate) = Day(dateToFind) Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;{0:MMMM d} is the bithday of {1}.&amp;quot;, dateToFind, employee.Key)&lt;br /&gt;
         End If&lt;br /&gt;
         &lt;br /&gt;
         If Month(employee.Value.HireDate) = Month(dateToFind) AndAlso Day(employee.Value.HireDate) = Day(dateToFind) Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;{0:MMMM d} is the hiring anniversary of {1}.&amp;quot;, dateToFind, employee.Key)&lt;br /&gt;
         End If&lt;br /&gt;
      Next&lt;br /&gt;
   End Sub&lt;br /&gt;
End Module&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>