<?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%2FLINQ%2FLambda</id>
		<title>VB.Net/LINQ/Lambda - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FLINQ%2FLambda"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/LINQ/Lambda&amp;action=history"/>
		<updated>2026-04-05T00:25:07Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/LINQ/Lambda&amp;diff=22&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/LINQ/Lambda&amp;diff=22&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</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/LINQ/Lambda&amp;diff=23&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/LINQ/Lambda&amp;diff=23&amp;oldid=prev"/>
				<updated>2010-05-26T12:41:34Z</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;==Lambda expression syntax==&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;
Option Strict On&lt;br /&gt;
Imports System.Collections.Generic&lt;br /&gt;
Module Program&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim list As New List(Of Integer)()&lt;br /&gt;
    list.AddRange(New Integer() {20, 1, 4, 8, 9, 44})&lt;br /&gt;
    Dim evenNumbers As List(Of Integer) = list.FindAll(Function(i As Integer) (i Mod 2) = 0)&lt;br /&gt;
    For Each evenNumber As Integer In evenNumbers&lt;br /&gt;
      Console.WriteLine(evenNumber)&lt;br /&gt;
    Next&lt;br /&gt;
  End Sub&lt;br /&gt;
  Function IsEvenNumber(ByVal i As Integer) As Boolean&lt;br /&gt;
    Return (i Mod 2) = 0&lt;br /&gt;
  End Function&lt;br /&gt;
  Sub LambdaExpressionSyntax()&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Lambdas with Multiple Params==&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;
Public Delegate Function BinaryOp(ByVal x As Integer, ByVal y As Integer) As Integer&lt;br /&gt;
Public Class SimpleMath&lt;br /&gt;
  Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer&lt;br /&gt;
    Return x + y&lt;br /&gt;
  End Function&lt;br /&gt;
  Public Function Subtract(ByVal x As Integer, _&lt;br /&gt;
    ByVal y As Integer) As Integer&lt;br /&gt;
    Return x - y&lt;br /&gt;
  End Function&lt;br /&gt;
End Class&lt;br /&gt;
Module Program&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim b As New BinaryOp(Function(x, y) x + y)&lt;br /&gt;
    DisplayDelegateInfo(b)&lt;br /&gt;
    Console.WriteLine(b(10, 10))&lt;br /&gt;
  End Sub&lt;br /&gt;
  Sub DisplayDelegateInfo(ByVal delObj As System.Delegate)&lt;br /&gt;
    For Each d As System.Delegate In delObj.GetInvocationList()&lt;br /&gt;
      Console.WriteLine(&amp;quot;Method Name: {0}&amp;quot;, d.Method)&lt;br /&gt;
      Console.WriteLine(&amp;quot;Type Name: {0}&amp;quot;, d.Target)&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Lambda with No Args==&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;
Option Strict On&lt;br /&gt;
Public Delegate Function GetTime() As String&lt;br /&gt;
Module Test&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim t As New GetTime(Function() DateTime.Now.ToString())&lt;br /&gt;
    Console.WriteLine(t)&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LINQ query with Enumerable / Lambdas==&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;
Module Program&lt;br /&gt;
  Sub Main()&lt;br /&gt;
    Dim currentVideoGames() As String = {&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;, &amp;quot;this is a test&amp;quot;, &amp;quot;C&amp;quot;, &amp;quot;D&amp;quot;, &amp;quot;E&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
    Dim subset = Enumerable.Where(currentVideoGames, Function(game) game.Length &amp;gt; 6).OrderBy(Function(game) game).Select(Function(game) game)&lt;br /&gt;
    For Each game In subset&lt;br /&gt;
      Console.WriteLine(&amp;quot;Item: {0}&amp;quot;, game)&lt;br /&gt;
    Next&lt;br /&gt;
&lt;br /&gt;
  End Sub&lt;br /&gt;
&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>