{"id":161,"date":"2021-07-13T07:42:22","date_gmt":"2021-07-13T04:42:22","guid":{"rendered":"https:\/\/ernan-maisels.net\/?p=161"},"modified":"2021-07-13T07:42:25","modified_gmt":"2021-07-13T04:42:25","slug":"%d7%90%d7%99%d7%9a-%d7%a2%d7%95%d7%91%d7%93-linq-%d7%91-c","status":"publish","type":"post","link":"https:\/\/hernan-yehuda.net\/?p=161","title":{"rendered":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C"},"content":{"rendered":"\n<p>Linq \u05d4\u05d9\u05d0 \u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05e0\u05d5 \u05dc\u05ea\u05e9\u05d0\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea \u05e7\u05d5\u05d3 #C. \u05d4\u05db\u05d5\u05d5\u05e0\u05d4 \u05d1\u05de\u05d9\u05dc\u05d4 &#8216;\u05dc\u05ea\u05e9\u05d0\u05dc&#8217; \u05d4\u05d9\u05d0 \u05dc\u05db\u05da \u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d7\u05de\u05d9\u05e9\u05d9\u05dd \u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8\u05d9\u05dd \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05dc\u05de\u05d9\u05d9\u05df, \u05dc\u05e1\u05e0\u05df, \u05dc\u05d0\u05d7\u05d3 \u05d5\u05db\u05d5&#8217; \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd.<\/p>\n\n\n\n<p>\u05dc\u05de\u05e9\u05dc \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05e7\u05d1\u05dc \u05de\u05ea\u05d5\u05da \u05e8\u05e9\u05d9\u05de\u05ea \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d4\u05dd \u05de\u05e0\u05d4\u05dc\u05d9 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea, \u05e0\u05e2\u05e9\u05d4 \u05d6\u05d0\u05ea \u05de\u05df \u05d4\u05e1\u05ea\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea Linq.<\/p>\n\n\n\n<p>\u05d0\u05d6 \u05d0\u05d9\u05da Linq \u05e2\u05d5\u05d1\u05d3?<\/p>\n\n\n\n<p>\u05db\u05d9\u05d3\u05d5\u05e2 #C \u05d4\u05d9\u05d0 \u05e9\u05e4\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea, \u05d5\u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd (types) \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05e7\u05d1\u05d5\u05e2\u05d9\u05dd \u05d5\u05de\u05d5\u05d2\u05d3\u05e8\u05d9\u05dd. \u05d5\u05dc\u05db\u05df, \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d1\u05e9\u05dd Where, \u05e9\u05ea\u05d7\u05d6\u05d9\u05e8 \u05dc\u05e0\u05d5 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05de\u05d8\u05d9\u05e4\u05d5\u05e1 Employee, \u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05d3\u05d0\u05d5\u05d2 \u05dc\u05da \u05e9\u05de\u05ea\u05d5\u05d3\u05ea Where \u05de\u05db\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e9\u05dc\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e4\u05ea\u05d9\u05e2 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05d0\u05d9\u05dd \u05e9Linq \u05ea\u05d5\u05de\u05db\u05ea \u05d1\u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d9\u05dd, \u05d0\u05e4\u05d9\u05dc\u05d5 \u05d0\u05dd \u05d4\u05e8\u05d2\u05e2 \u05d4\u05d2\u05d3\u05e8\u05e0\u05d5 \u05d0\u05d5\u05ea\u05dd.<\/p>\n\n\n\n<p>\u05e0\u05e0\u05d9\u05d7 \u05e9\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d9\u05d5 \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05dc\u05e0\u05d5 Interface \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4, \u05d5\u05e9\u05d4Interface \u05d4\u05d6\u05d4 \u05de\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e0\u05d7\u05d5\u05e6\u05d5\u05ea, \u05e2\u05d3\u05d9\u05d9\u05df \u05d4\u05d9\u05ea\u05d4 \u05d1\u05e2\u05d9\u05d4 \u05d1\u05d2\u05dc\u05dc \u05e9\u05db\u05dc \u05de\u05d9 \u05e9\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4 Interface \u05d4\u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e6\u05e8\u05d9\u05da \u05dc\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05d0\u05dc\u05d4. \u05d5\u05d0\u05dd \u05e4\u05ea\u05d0\u05d5\u05dd \u05d4\u05d9\u05d5 \u05de\u05d7\u05dc\u05d9\u05d8\u05d9\u05dd \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e2\u05d5\u05d3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea, \u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e9\u05d5\u05d1\u05e8 \u05d0\u05ea \u05d4Interface.<\/p>\n\n\n\n<p>\u05d0\u05d6 \u05de\u05d4 \u05e2\u05d5\u05e9\u05d9\u05dd?<\/p>\n\n\n\n<p>\u05db\u05d0\u05e9\u05e8 \u05d7\u05d9\u05e4\u05e9\u05d5 \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d0\u05ea \u05d4\u05de\u05db\u05e0\u05d4 \u05d4\u05de\u05e9\u05d5\u05ea\u05e3 \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 (\u05de\u05d1\u05d7\u05d9\u05e0\u05ea \u05d4\u05d9\u05e8\u05e8\u05db\u05d9\u05d9\u05ea \u05d9\u05e8\u05d5\u05e9\u05d4) \u05e9\u05dc \u05de\u05d1\u05e0\u05d9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d4\u05dd \u05d1\u05d7\u05e8\u05d5 \u05d0\u05ea  \u05d4 Interface\u00a0<strong><u>IEnumerable&lt;T><\/u><\/strong>.<\/p>\n\n\n\n<p>IEnumerable&lt;t&gt; \u05d4\u05d5\u05d0 \u05d4\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1 \u05d4\u05de\u05ea\u05d0\u05d9\u05dd \u05d1\u05d9\u05d5\u05ea\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e7\u05e9\u05d5\u05e8\u05d5\u05ea \u05dc\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d5\u05d0 \u05de\u05db\u05d9\u05dc \u05de\u05ea\u05d5\u05d3\u05d4 \u05d0\u05d7\u05ea \u05d5\u05d9\u05d7\u05d9\u05d3\u05d4 \u2013&nbsp;<strong>GetEnumerator<\/strong>(). \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d0\u05d7\u05d3 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd. \u05db\u05de\u05d5 \u05dc\u05de\u05e9\u05dc \u05db\u05d0\u05e9\u05e8 \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05d1\u05dc\u05d5\u05dc\u05d0\u05ea ForEach.<\/p>\n\n\n\n<p>\u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d7\u05dc\u05d9\u05d8\u05d5 \u05e9\u05dc\u05d0 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc IEnumerable&lt;T> \u05d0\u05dc\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d8\u05db\u05e0\u05d9\u05e7\u05d4 \u05e9\u05e0\u05e7\u05e8\u05d0\u05ea Extension Methods, \u05d5\u05e2\u05dc \u05db\u05da \u05e0\u05e8\u05d7\u05d9\u05d1 \u05de\u05e2\u05d8.<\/p>\n\n\n\n<p><strong>Extension Methods<\/strong><\/p>\n\n\n\n<p>Extension Methods \u05d4\u05d9\u05d0 \u05d3\u05e8\u05da \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e7\u05d9\u05d9\u05de\u05d5\u05ea \u05de\u05d1\u05dc\u05d9 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05df, \u05d5\u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05d6\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u2013 \u05dc\u05de\u05e8\u05d5\u05ea \u05e9\u05dc\u05de\u05e2\u05e9\u05d4 \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d0\u05d7\u05e8\u05ea.<\/p>\n\n\n\n<p>\u05d0\u05d9\u05da \u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3:<\/p>\n\n\n\n<p>\u05e0\u05e0\u05d9\u05d7 \u05e9\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05ea \u05d7\u05d9\u05e9\u05d5\u05d1 \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 DateTime. \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05e8\u05e9\u05ea \u05deDateTime \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d9\u05d5\u05e8\u05e9\u05ea \u05d0\u05ea \u05d4\u05ea\u05d5\u05e1\u05e4\u05ea \u05e9\u05dc\u05d9 \u05d1\u05d2\u05dc\u05dc \u05e9 DateTime \u05d6\u05d4 struct \u05d5\u05dc\u05db\u05df \u05d4\u05d5\u05d0 \u05de\u05d5\u05d2\u05d3\u05e8 \u05db sealed \u05d5\u05d0\u05d9 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05e8\u05e9\u05ea \u05de\u05de\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05d0\u05dd \u05db\u05df, \u05d9\u05e8\u05d5\u05e9\u05d4 \u05d0\u05d9\u05e0\u05d4 \u05d1\u05d0\u05d4 \u05d1\u05d7\u05e9\u05d1\u05d5\u05df \u05db\u05d0\u05e9\u05e8 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05e9\u05dc DateTime.<\/p>\n\n\n\n<p>\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d0\u05d7\u05ea \u05d4\u05de\u05ea\u05d0\u05d9\u05de\u05d4 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05d9\u05dd \u05d3\u05d5\u05de\u05d9\u05dd \u05d4\u05d9\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05ea\u05d1\u05e0\u05d9\u05ea \u05d4\u05e2\u05d9\u05e6\u05d5\u05d1\u00a0<a href=\"https:\/\/web.archive.org\/web\/20140919045342\/http:\/\/blogs.microsoft.co.il\/ernan\/2014\/09\/10\/decorator\/\" target=\"_blank\" rel=\"noreferrer noopener\">Decor<\/a><a href=\"https:\/\/hernan-yehuda.net\/?p=124\">ator<\/a><a href=\"https:\/\/web.archive.org\/web\/20140919045342\/http:\/\/blogs.microsoft.co.il\/ernan\/2014\/09\/10\/decorator\/\" target=\"_blank\" rel=\"noreferrer noopener\">, \u05db\u05e4\u05d9 \u05e9\u05d4\u05d5\u05e1\u05d1\u05e8 \u05d1\u05e4\u05d5\u05e1\u05d8 \u05e7\u05d5\u05d3\u05dd.<\/a><\/p>\n\n\n\n<p>\u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05e9\u05d0\u05d5\u05ea\u05d4 \u05e0\u05d3\u05d2\u05d9\u05dd \u05d4\u05d9\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Methods.<\/p>\n\n\n\n<p>\u05e0\u05e0\u05d9\u05d7 \u05e9\u05d9\u05e9 \u05dc\u05d9 \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc DateTime \u05de\u05d0\u05d5\u05ea\u05d7\u05dc \u05dc\u05ea\u05d0\u05e8\u05d9\u05da \u05db\u05dc\u05e9\u05d4\u05d5 \u05d5\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d3\u05e2\u05ea \u05db\u05de\u05d4 \u05d9\u05de\u05d9\u05dd \u05e0\u05e9\u05d0\u05e8\u05d5 \u05e2\u05d3 \u05dc\u05e1\u05d5\u05e3 \u05d4\u05d7\u05d5\u05d3\u05e9 \u05d4\u05d6\u05d4.<\/p>\n\n\n\n<p>\u05d0\u05e0\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05d7\u05e9\u05d1 \u05d0\u05ea \u05d6\u05d4 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> DateTime date = <span style=\"color: #0000ff\">new<\/span> DateTime(2014, 8, 8);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> <span style=\"color: #0000ff\">int<\/span> daysUntilEndOfMonth = DateTime.DaysInMonth(date.Year, date.Month) - date.Day;<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d6\u05d4 \u05d1\u05e1\u05d3\u05e8 \u05d5\u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3, \u05d0\u05d1\u05dc \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05db\u05ea\u05d5\u05d1 \u05d0\u05ea \u05db\u05dc \u05d4\u05e7\u05d5\u05d3 \u05d4\u05d6\u05d4 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd \u05e9\u05d0\u05e0\u05d9 \u05e6\u05e8\u05d9\u05da \u05d0\u05ea \u05d4\u05d7\u05d9\u05e9\u05d5\u05d1 \u05dc\u05d0\u05d5\u05e8\u05da \u05d4\u05e7\u05d5\u05d3.<\/p>\n\n\n\n<p>\u05d0\u05de\u05e0\u05dd \u05d4\u05d9\u05d9\u05ea\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e2\u05dd \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05d0\u05d1\u05dc \u05d6\u05d4 \u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e0\u05d5\u05d7 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9. \u05d4\u05d9\u05d9\u05ea\u05d9 \u05de\u05e2\u05d3\u05d9\u05e3 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05d7\u05e9\u05d1\u05ea \u05d0\u05ea \u05d6\u05d4 \u05db\u05d7\u05dc\u05e7 \u05d0\u05d9\u05e0\u05d8\u05d2\u05e8\u05dc\u05d9 \u05de DateTime.<\/p>\n\n\n\n<p>\u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">class<\/span> DateTimeExtensions<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">int<\/span> DaysToEndOfMonth(DateTime date)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span>     {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span>         <span style=\"color: #0000ff\">return<\/span> DateTime.DaysInMonth(date.Year, date.Month) - date.Day;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum6\" style=\"color: #606060\">   6:<\/span>     }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum7\" style=\"color: #606060\">   7:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> DateTime date = <span style=\"color: #0000ff\">new<\/span> DateTime(2014, 8, 8);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> <span style=\"color: #0000ff\">int<\/span> daysUntilEndOfMonth = DateTimeExtensions.DaysToEndOfMonth(date);<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05d4\u05d6\u05d5, \u05de\u05dc\u05d1\u05d3 \u05d0\u05d9 \u05e0\u05d5\u05d7\u05d5\u05ea \u05d4\u05db\u05ea\u05d9\u05d1\u05d4 \u05d9\u05e9 \u05d2\u05dd \u05e7\u05d5\u05e9\u05d9 \u05dc\u05e7\u05e8\u05d5\u05d0 \u05d0\u05ea \u05d4\u05e7\u05d5\u05d3 \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05dc\u05d0 \u05db\u05d5\u05dc\u05dd \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05de\u05d4\u05d9 \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d7\u05d3\u05e9\u05d4 \u05d0\u05d5\u05ea\u05d4 \u05d4\u05d2\u05d3\u05e8\u05ea\u05d9.<\/p>\n\n\n\n<p>\u05d5\u05e2\u05db\u05e9\u05d9\u05d5 \u05dc\u05e7\u05e1\u05dd\u2026.<\/p>\n\n\n\n<p>\u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05de\u05d9\u05dc\u05d4&nbsp;<strong><u>this<\/u><\/strong>&nbsp;\u05dc\u05e4\u05e0\u05d9 \u05e9\u05dd \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 DateTime \u05d1\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05e9\u05dc\u05d9, \u05d0\u05e0\u05d9 \u05d2\u05d5\u05e8\u05dd \u05dc\u05db\u05da \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d6\u05d5 \u05e0\u05d5\u05e1\u05e4\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1 DateTime \u05e2\u05e6\u05de\u05d5.<\/p>\n\n\n\n<p>\u05db\u05e2\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05ea\u05e8\u05d0\u05d4 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">int<\/span> DaysToEndOfMonth(<span style=\"color: #0000ff\">this<\/span> DateTime date)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     <span style=\"color: #0000ff\">return<\/span> DateTime.DaysInMonth(date.Year, date.Month) - date.Day;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d5\u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05e4\u05e9\u05d5\u05d8 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">int<\/span> daysUntilEndOfMonth = date.DaysToEndOfMonth();<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e2\u05d5\u05de\u05d3\u05ea \u05d1\u05e4\u05e0\u05d9 \u05e2\u05e6\u05de\u05d4 \u05d0\u05da \u05d1\u05e2\u05d6\u05e8\u05ea \u05d8\u05e8\u05d9\u05e7 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d4\u05d9\u05d0 \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05ea\u05d5\u05da \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8.<\/p>\n\n\n\n<p>\u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4, \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Method, \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05d5\u05d1\u05e0\u05d5\u05ea \u05d1\u05e9\u05e4\u05d4, \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1\u05d9\u05dd.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u05d1\u05d7\u05d6\u05e8\u05d4 \u05dcLINQ<\/strong><\/p>\n\n\n\n<p>\u05d4\u05d6\u05db\u05e8\u05e0\u05d5 \u05d0\u05ea IEnumareble&lt;T&gt; \u05db\u05de\u05d5\u05e2\u05de\u05d3 \u05e4\u05d5\u05d8\u05e0\u05e6\u05d9\u05d0\u05dc\u05d9 \u05dc\u05d4\u05d7\u05d6\u05e7\u05ea \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea, \u05d0\u05d1\u05dc \u05d0\u05de\u05e8\u05e0\u05d5 \u05e9\u05dc\u05d0 \u05e8\u05e6\u05d5 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05d4, \u05d5\u05dc\u05db\u05df \u05d4\u05d3\u05e8\u05da \u05d4\u05e0\u05db\u05d5\u05e0\u05d4 \u05d4\u05d9\u05d0 \u05dc\u05d9\u05e6\u05e8 \u05de\u05d7\u05dc\u05e7\u05d4 \u05d9\u05d9\u05e2\u05d5\u05d3\u05d9\u05ea \u05dc\u05e2\u05e0\u05d9\u05d9\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Extension Method\u05dc IEnumareble&lt;T&gt;.<\/p>\n\n\n\n<p>\u05dc\u05de\u05e9\u05dc \u05d4\u05d9\u05d4 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d9\u05e6\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e7\u05d1\u05dc\u05ea \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 IEnumerable&lt;string> \u05d5\u05de\u05e1\u05e0\u05e0\u05ea \u05e8\u05e7 \u05d0\u05ea \u05d0\u05dc\u05d5 \u05d1\u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05de\u05ea\u05d7\u05d9\u05dc\u05d9\u05dd \u05d1\u05d0\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea, \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">class<\/span> FilterExtensions<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> IEnumerable&lt;<span style=\"color: #0000ff\">string<\/span>&gt; StringThatStartWith<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span>     (<span style=\"color: #0000ff\">this<\/span> IEnumerable&lt;<span style=\"color: #0000ff\">string<\/span>&gt; input,<span style=\"color: #0000ff\">string<\/span> start )<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span>     {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum6\" style=\"color: #606060\">   6:<\/span>         <span style=\"color: #0000ff\">foreach<\/span> (var s <span style=\"color: #0000ff\">in<\/span> input)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum7\" style=\"color: #606060\">   7:<\/span>         {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum8\" style=\"color: #606060\">   8:<\/span>             <span style=\"color: #0000ff\">if<\/span> (s.StartsWith(start))<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum9\" style=\"color: #606060\">   9:<\/span>             {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum10\" style=\"color: #606060\">  10:<\/span>                 <span style=\"color: #0000ff\">yield<\/span> <span style=\"color: #0000ff\">return<\/span> s;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum11\" style=\"color: #606060\">  11:<\/span>             }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum12\" style=\"color: #606060\">  12:<\/span>         }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum13\" style=\"color: #606060\">  13:<\/span>     }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum14\" style=\"color: #606060\">  14:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d5\u05d0\u05d6 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d6\u05d4 \u05dc\u05de\u05e9\u05dc \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> IEnumerable&lt;<span style=\"color: #0000ff\">string<\/span>&gt; employees = <span style=\"color: #0000ff\">new<\/span>[] {<span style=\"color: #006080\">\"Avi\"<\/span>, <span style=\"color: #006080\">\"Danny\"<\/span>, <span style=\"color: #006080\">\"Moshe\"<\/span>};<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> var startWithA = employees.StringThatStartWith(<span style=\"color: #006080\">\"A\"<\/span>);<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d5\u05d6\u05d4 \u05db\u05de\u05d5\u05d1\u05df \u05d1\u05ea\u05e0\u05d0\u05d9 \u05e9\u05d9\u05e9 \u05dc\u05d9 using \u05dc namespace \u05e9\u05d1\u05d5 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d4extensions \u05e9\u05dc\u05d9.<\/p>\n\n\n\n<p>\u05d1\u05d3\u05d9\u05d5\u05e7 \u05d1\u05d3\u05e8\u05da \u05d4\u05d6\u05d5 LINQ \u05e2\u05d5\u05d1\u05d3. \u05de\u05d5\u05e1\u05d9\u05e4\u05d9\u05dd \u05d0\u05ea \u05d4namespace system.Linq \u05d5\u05d1\u05db\u05da \u05de\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5\u05ea \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05e8\u05d1\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05da \u05e9\u05dc\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05e2\u05d3\u05d9\u05d9\u05df \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05de\u05ea\u05d5\u05d3\u05ea where \u05dc\u05de\u05e9\u05dc, \u05d9\u05d5\u05d3\u05e2\u05ea \u05dc\u05e1\u05e0\u05df \u05dc\u05e4\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05d9\u05dd \u05e9\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05e8\u05e7 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc\u05d9? \u05d0\u05d9\u05da \u05e2\u05d5\u05e9\u05d9\u05dd \u05e9\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d2\u05e0\u05e8\u05d9 \u05e2\u05d3 \u05db\u05d3\u05d9 \u05db\u05da?<\/p>\n\n\n\n<p>\u05e0\u05d7\u05d6\u05d5\u05e8 \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5:<\/p>\n\n\n\n<p>\u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5 \u05d9\u05e9 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05ea\u05d5\u05da \u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 \u05d0\u05e0\u05d9 \u05de\u05e2\u05d5\u05e0\u05d9\u05d9\u05df \u05e9\u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05d9\u05d2\u05d3\u05d9\u05e8 \u05dc\u05d9 \u05de\u05d4 \u05dc\u05e1\u05e0\u05df \u05d5\u05e2\u05dc \u05e4\u05d9 \u05d0\u05d9\u05d6\u05d4 \u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df.<\/p>\n\n\n\n<p>\u05d0\u05dd \u05db\u05da \u05e0\u05e9\u05e0\u05d4 \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05dc\u05de\u05e9\u05d4\u05d5 \u05d2\u05e0\u05e8\u05d9 \u05d9\u05d5\u05ea\u05e8 (\u05d1\u05e2\u05d6\u05e8\u05ea T) \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d0\u05ea \u05d4\u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df \u05dc\u05e1\u05d9\u05e0\u05d5\u05df (\u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05d1\u05de\u05e7\u05e8\u05d4 \u05e9\u05dc\u05e0\u05d5) \u05e0\u05d2\u05d3\u05d9\u05e8 delegate \u05e9\u05d0\u05e3 \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc T \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 (\u05d5\u05d6\u05d4 \u05d1\u05e9\u05d1\u05d9\u05dc \u05dc\u05e4\u05dc\u05d8\u05e8 \u2013 \u05db\u05dc\u05d5\u05de\u05e8 \u05dc\u05d3\u05e2\u05ea \u05d4\u05d0\u05dd item \u05db\u05dc\u05e9\u05d4\u05d5 \u05e7\u05d9\u05d9\u05dd \u05d1\u05e8\u05e9\u05d9\u05de\u05d4).<\/p>\n\n\n\n<p>\u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">class<\/span> FilterExtensions<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> IEnumerable&lt;T&gt; Filter&lt;T&gt;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span>     (<span style=\"color: #0000ff\">this<\/span> IEnumerable&lt;T&gt; input,FilterDelegate&lt;T&gt; issue)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span>     {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum6\" style=\"color: #606060\">   6:<\/span>         <span style=\"color: #0000ff\">foreach<\/span> (var item <span style=\"color: #0000ff\">in<\/span> input)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum7\" style=\"color: #606060\">   7:<\/span>         {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum8\" style=\"color: #606060\">   8:<\/span>             <span style=\"color: #0000ff\">if<\/span> (issue(item))<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum9\" style=\"color: #606060\">   9:<\/span>             {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum10\" style=\"color: #606060\">  10:<\/span>                 <span style=\"color: #0000ff\">yield<\/span> <span style=\"color: #0000ff\">return<\/span> item;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum11\" style=\"color: #606060\">  11:<\/span>             }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum12\" style=\"color: #606060\">  12:<\/span>         }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum13\" style=\"color: #606060\">  13:<\/span>     }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum14\" style=\"color: #606060\">  14:<\/span>&nbsp; <\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum15\" style=\"color: #606060\">  15:<\/span>     <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">delegate<\/span> <span style=\"color: #0000ff\">bool<\/span> FilterDelegate&lt;T&gt;(T item);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum16\" style=\"color: #606060\">  16:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d1\u05e9\u05dc\u05d1 \u05d4\u05d6\u05d4 \u05e0\u05d5\u05db\u05dc \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05dc\u05e0\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05e9\u05dc\u05d4\u05df \u05d5\u05d0\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e9\u05d9\u05e6\u05e8\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">void<\/span> Main(<span style=\"color: #0000ff\">string<\/span>[] args)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     IEnumerable&lt;<span style=\"color: #0000ff\">string<\/span>&gt; employees = <span style=\"color: #0000ff\">new<\/span>[] { <span style=\"color: #006080\">\"Avi\"<\/span>, <span style=\"color: #006080\">\"Danny\"<\/span>, <span style=\"color: #006080\">\"Moshe\"<\/span> };<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span>     var startWithA = employees.Filter(StringThatStartWithA);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span> }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum6\" style=\"color: #606060\">   6:<\/span>&nbsp; <\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum7\" style=\"color: #606060\">   7:<\/span> <span style=\"color: #0000ff\">private<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">bool<\/span> StringThatStartWithA(<span style=\"color: #0000ff\">string<\/span> s)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum8\" style=\"color: #606060\">   8:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum9\" style=\"color: #606060\">   9:<\/span>     <span style=\"color: #0000ff\">return<\/span> s.StartsWith(<span style=\"color: #006080\">\"A\"<\/span>);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum10\" style=\"color: #606060\">  10:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d0\u05de\u05e0\u05dd, \u05e9\u05d9\u05d8\u05d4 \u05d6\u05d5 \u05dc\u05d0 \u05e0\u05d5\u05d7\u05d4 \u05d1\u05db\u05dc\u05dc \u05d1\u05d2\u05dc\u05dc \u05e9\u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e2\u05dc \u05db\u05dc \u05d0\u05d5\u05ea \u05d5\u05d0\u05d5\u05ea \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05e2\u05dc\u05d5\u05dc\u05d9\u05dd \u05dc\u05d1\u05d3\u05d5\u05e7.<\/p>\n\n\n\n<p>\u05d0\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d6\u05d5 \u05e0\u05e4\u05ea\u05d5\u05e8 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 anonymous delegate.<\/p>\n\n\n\n<p>\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e9\u05dc\u05d5\u05d7 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05ea \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e0\u05db\u05ea\u05d5\u05d1 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> var startWithA = employees.Filter(<span style=\"color: #0000ff\">delegate<\/span>(<span style=\"color: #0000ff\">string<\/span> item)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>     <span style=\"color: #0000ff\">return<\/span> item.StartsWith(<span style=\"color: #006080\">\"A\"<\/span>);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span> });<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d6\u05d4 \u05d7\u05d5\u05e1\u05da \u05dc\u05e0\u05d5 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea, \u05d0\u05da \u05e2\u05d3\u05d9\u05d9\u05df \u05d6\u05d4 \u05dc\u05d0 \u05d2\u05e0\u05e8\u05d9.<\/p>\n\n\n\n<p>\u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d6\u05d4 \u05dc\u05d9\u05d5\u05ea\u05e8 \u05d2\u05e0\u05e8\u05d9, \u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05de\u05d4 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05e9\u05dc \u05d4\u05e9\u05e4\u05d4 \u2013 \u05d9\u05e9 \u05db\u05de\u05d4 \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05de\u05e8\u05d0\u05e9 \u05d5\u05d6\u05d4 \u05e9 Filter \u05de\u05e7\u05d1\u05dc delegate \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4\u05de\u05d9\u05dc\u05d4 delegate.<\/p>\n\n\n\n<p>\u05db\u05de\u05d5 \u05db\u05df \u05d9\u05d3\u05d5\u05e2 \u05e9\u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05d5\u05d0 \u05de\u05e1\u05d5\u05d2 string \u05d1\u05d2\u05dc\u05dc \u05e9\u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05e9\u05dc string, \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 string.<\/p>\n\n\n\n<p>\u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 return \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8, \u05d5\u05db\u05df \u05de\u05d4\u05e1\u05d5\u05d2\u05e8\u05d9\u05d9\u05dd \u05d4\u05de\u05e1\u05d5\u05dc\u05e1\u05dc\u05d5\u05ea.<\/p>\n\n\n\n<p>\u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea \u05d4\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8 =&gt; (goes to) \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05dc\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e9\u05d6\u05d4 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05e9\u05dc\u05e0\u05d5.<\/p>\n\n\n\n<p>\u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05e0\u05e8\u05d0\u05d4 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> var startWithA = employees.Filter((item)=&gt;item.StartsWith(<span style=\"color: #006080\">\"A\"<\/span>));<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05e0\u05e8\u05d0\u05d4 \u05e7\u05e6\u05ea \u05de\u05d5\u05db\u05e8? \u05e1\u05d9\u05de\u05df \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05de\u05ea\u05e7\u05e8\u05d1\u05d9\u05dd \u05dc\u05d9\u05e2\u05d3\u2026<\/p>\n\n\n\n<p>\u05e0\u05e9\u05d0\u05e8\u05e0\u05d5 \u05e2\u05dd \u05d0\u05d5\u05ea\u05d5 delegate \u05d0\u05d1\u05dc \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05e7\u05d5\u05d3. \u05e6\u05d5\u05e8\u05ea \u05db\u05ea\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05e0\u05e7\u05e8\u05d0\u05ea Lambda Expression \u05e9\u05d1\u05e2\u05d6\u05e8\u05ea\u05d4 \u05db\u05d5\u05ea\u05d1\u05d9\u05dd delegate \u05d4\u05d7\u05dc \u05de C# 3.0.<\/p>\n\n\n\n<p>\u05d4\u05e6\u05d3 \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05e9\u05dc \u05d4\u05de\u05e9\u05d5\u05d5\u05d0\u05d4 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u2013 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc\u05ea \u05db\u05e4\u05e8\u05de\u05d8\u05e8 string (\u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d9\u05d0 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e9\u05dc string). \u05d5\u05d4\u05e6\u05d3 \u05d4\u05d9\u05de\u05e0\u05d9 \u05d4\u05d5\u05d0 \u05d4\u05e4\u05e2\u05d5\u05dc\u05d4 \u05e2\u05e6\u05de\u05d4.<\/p>\n\n\n\n<p><strong>\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1&nbsp;<\/strong><strong>Func<\/strong><\/p>\n\n\n\n<p>\u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 Func \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05d5\u05e8\u05db\u05d1 \u05d4\u05de\u05db\u05de\u05e1 (Encapsulate) delegate.<\/p>\n\n\n\n<p>\u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc Func \u05de\u05ea\u05d0\u05e8\u05ea delegate \u05db\u05d0\u05e9\u05e8 \u05d4\u05d9\u05d0 \u05de\u05db\u05d9\u05dc\u05d4 \u05e9\u05e0\u05d9 \u05d7\u05dc\u05e7\u05d9\u05dd \u2013 \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df, \u05d0\u05d5 \u05d4\u05d7\u05dc\u05e7\u05d9\u05dd \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05dd, \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05e0\u05e9\u05dc\u05d7\u05d9\u05dd \u05d0\u05dc \u05d4delegate. \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e9\u05e0\u05d9 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8 \u05de\u05d4 delegate.<\/p>\n\n\n\n<p>\u05dc\u05de\u05e9\u05dc \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d9\u05d7\u05d9\u05d3 \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool.<\/p>\n\n\n\n<p>\u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 int \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool.<\/p>\n\n\n\n<p>\u05d5\u05db\u05df \u05d4\u05dc\u05d0\u05d4.<\/p>\n\n\n\n<p>\u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05dc\u05d5\u05d7 \u05e2\u05d3 \u05d7\u05de\u05e9 \u05e2\u05e9\u05e8\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd, \u05db\u05d0\u05e9\u05e8 \u05ea\u05de\u05d9\u05d3 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d4\u05d5\u05d0 \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8.<\/p>\n\n\n\n<p>\u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e0\u05d5\u05db\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05d4\u05d3\u05e4\u05e1\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05de\u05db\u05e4\u05dc\u05d4 \u05e9\u05dc\u05d4\u05dd.<\/p>\n\n\n\n<p>\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> Func&lt;<span style=\"color: #0000ff\">int<\/span>, <span style=\"color: #0000ff\">int<\/span>, <span style=\"color: #0000ff\">int<\/span>&gt; Multi = (x, y) =&gt; x*y;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> Console.WriteLine(Multi(3,5));<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05db\u05d0\u05de\u05d5\u05e8 \u2013 \u05d4 int \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8.<\/p>\n\n\n\n<p>\u05d0\u05dd \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Action \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. \u05d4\u05dd \u05d6\u05d4\u05d9\u05dd \u05dc\u05de\u05e2\u05d8 \u05e9\u05dc Action \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8.<\/p>\n\n\n\n<p>\u05d1\u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc LINQ, \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Func \u05e2\u05d5\u05d6\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4 delegate \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d4 \u05dc\u05e7\u05d1\u05dc Func \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> <span style=\"color: #0000ff\">class<\/span> FilterExtensions<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span> {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>   <span style=\"color: #0000ff\">public<\/span> <span style=\"color: #0000ff\">static<\/span> IEnumerable&lt;T&gt; Filter&lt;T&gt;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum4\" style=\"color: #606060\">   4:<\/span>   (<span style=\"color: #0000ff\">this<\/span> IEnumerable&lt;T&gt; input, Func&lt;T,<span style=\"color: #0000ff\">bool<\/span>&gt; issue)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum5\" style=\"color: #606060\">   5:<\/span>   {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum6\" style=\"color: #606060\">   6:<\/span>       <span style=\"color: #0000ff\">foreach<\/span> (var item <span style=\"color: #0000ff\">in<\/span> input)<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum7\" style=\"color: #606060\">   7:<\/span>       {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum8\" style=\"color: #606060\">   8:<\/span>           <span style=\"color: #0000ff\">if<\/span> (issue(item))<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum9\" style=\"color: #606060\">   9:<\/span>           {<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum10\" style=\"color: #606060\">  10:<\/span>               <span style=\"color: #0000ff\">yield<\/span> <span style=\"color: #0000ff\">return<\/span> item;<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum11\" style=\"color: #606060\">  11:<\/span>           }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum12\" style=\"color: #606060\">  12:<\/span>       }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum13\" style=\"color: #606060\">  13:<\/span>   }<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum14\" style=\"color: #606060\">  14:<\/span> }<\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p>\u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4 LINQ \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05d1\u05d0\u05d5\u05e4\u05df \u05d7\u05d5\u05e4\u05e9\u05d9 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dc \u05e4\u05d9\u05d4\u05dd \u05d0\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e1\u05e0\u05df \u05d5\u05d0\u05e3 \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05e0\u05d5\u05df \u05e2\u05dc \u05d2\u05d1\u05d9 \u05e1\u05d9\u05e0\u05d5\u05df \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0:<\/p>\n\n\n\n<div id=\"codeSnippetWrapper\" style=\"overflow: auto;cursor: text;font-size: 8pt;border-top: silver 1px solid;font-family: 'Courier New', courier, monospace;border-right: silver 1px solid;width: 97.5%;border-bottom: silver 1px solid;padding-bottom: 4px;direction: ltr;text-align: left;padding-top: 4px;padding-left: 4px;margin: 20px 0px 10px;border-left: silver 1px solid;line-height: 12pt;padding-right: 4px;background-color: #f4f4f4\">\n<div id=\"codeSnippet\" style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\">\n<pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum1\" style=\"color: #606060\">   1:<\/span> var result = employees.Where(e =&gt; e.StartsWith(<span style=\"color: #006080\">\"A\"<\/span>))<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: #f4f4f4\"><span id=\"lnum2\" style=\"color: #606060\">   2:<\/span>                       .OrderByDescending(e =&gt; e.Length);<\/pre>\n<p><!--CRLF-->\n<\/p><pre style=\"border-top-style: none;overflow: visible;font-size: 8pt;font-family: 'Courier New', courier, monospace;width: 100%;border-bottom-style: none;color: black;padding-bottom: 0px;direction: ltr;text-align: left;padding-top: 0px;border-right-style: none;padding-left: 0px;margin: 0em;border-left-style: none;line-height: 12pt;padding-right: 0px;background-color: white\"><span id=\"lnum3\" style=\"color: #606060\">   3:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p><\/div>\n<\/div>\n\n\n\n<p><strong>Linq<\/strong><strong>&nbsp;\u05d5&nbsp;<\/strong><strong>Entityframework<\/strong><\/p>\n\n\n\n<p>\u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 Entityframework, \u05e9\u05d4\u05d5\u05d0 \u05e2\u05e6\u05de\u05d5 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ, \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05d4\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 LINQ \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05e2\u05d1\u05d5\u05d3 \u05de\u05d5\u05dc \u05de\u05e1\u05d3 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05dc \u05db\u05da \u05d2\u05d3\u05d5\u05dc.<\/p>\n\n\n\n<p>\u05d0\u05d9\u05df \u05d4\u05e8\u05d1\u05d4 \u05d4\u05d2\u05d9\u05d5\u05df \u05d1\u05d4\u05d1\u05d0\u05ea \u05d4 Data Base \u05db\u05d5\u05dc\u05d5 \u05dc\u05d6\u05d9\u05db\u05e8\u05d5\u05df \u05e2\u05dc \u05de\u05e0\u05ea \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05ea\u05e9\u05d0\u05dc \u05d0\u05d5\u05ea\u05d5.<\/p>\n\n\n\n<p>\u05d5\u05dc\u05db\u05df Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05d3\u05e8\u05da \u05de\u05e2\u05d8 \u05e9\u05d5\u05e0\u05d4.<\/p>\n\n\n\n<p>\u05dc\u05de\u05e2\u05e9\u05d4 Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ \u05d1\u05e6\u05d5\u05e8\u05d4 \u05db\u05d6\u05d5 \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05dc\u05d0 \u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d1\u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd, \u05d0\u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d4 \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e9\u05ea\u05dc\u05da \u05d0\u05d7\u05e8 \u05db\u05da \u05dc SQL. \u05d4\u05d3\u05d1\u05e8 \u05de\u05ea\u05e8\u05d7\u05e9 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d5\u05e9\u05d2 \u05e9\u05e0\u05e7\u05e8\u05d0 Expression \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func.<\/p>\n\n\n\n<p>Expression \u05e2\u05d5\u05d8\u05e4\u05d9\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 Func \u05d5\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05dc\u05ea\u05e8\u05d2\u05dd Func \u05e9\u05e2\u05d8\u05d5\u05e3 \u05d1Expression \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea.<\/p>\n\n\n\n<p>\u05d5\u05db\u05d0\u05e9\u05e8 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05d4\u05d6\u05d5 \u05ea\u05d9\u05e9\u05dc\u05d7 \u05dcDatabase \u05d4\u05d9\u05d0 \u05ea\u05d7\u05d6\u05d9\u05e8 \u05e8\u05e7 \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05d1\u05d5\u05e7\u05e9\u05d9\u05dd \u05d5\u05dc\u05d0 \u05d0\u05ea \u05db\u05dc \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd.<\/p>\n\n\n\n<p>\u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d4\u05d4\u05d1\u05e0\u05d4, \u05e0\u05e6\u05d9\u05d9\u05df \u05e9 Entityframework \u05dc\u05d0 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1 IEnumerable&lt;T&gt; \u05db\u05de\u05d5 \u05d1LINQ \u05e8\u05d2\u05d9\u05dc, \u05d0\u05dc\u05d0 \u05d1&nbsp;<strong><u>IQuetyable<\/u><\/strong>&lt;T&gt;. \u05e9\u05d0\u05de\u05e0\u05dd \u05d9\u05d5\u05e8\u05e9 \u05de IEnumerable \u05d0\u05dc\u05d0 \u05e9\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc Func \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc Expression.<\/p>\n\n\n\n<p>\u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Func \u05d4\u05d5\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dcdelegate \u05d5\u05d0\u05d6 \u05dc IL.<\/p>\n\n\n\n<p>\u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Expression \u05d4\u05d5\u05d0 \u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dc IL, \u05d0\u05dc\u05d0 \u05dc\u05de\u05d1\u05e0\u05d4 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d9\u05dd \u05d5\u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea.<\/p>\n\n\n\n<p>Entityframework \u05d5\u05d3\u05d5\u05de\u05d9\u05d5 \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05dc\u05e7\u05d7\u05ea \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4 \u05d5\u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05dd \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05de\u05d5\u05dc \u05d1\u05e1\u05d9\u05e1 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linq \u05d4\u05d9\u05d0 \u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05e0\u05d5 \u05dc\u05ea\u05e9\u05d0\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea \u05e7\u05d5\u05d3 #C. \u05d4\u05db\u05d5\u05d5\u05e0\u05d4 \u05d1\u05de\u05d9\u05dc\u05d4 &#8216;\u05dc\u05ea\u05e9\u05d0\u05dc&#8217; \u05d4\u05d9\u05d0 \u05dc\u05db\u05da \u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d7\u05de\u05d9\u05e9\u05d9\u05dd \u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8\u05d9\u05dd \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05dc\u05de\u05d9\u05d9\u05df, \u05dc\u05e1\u05e0\u05df, \u05dc\u05d0\u05d7\u05d3 \u05d5\u05db\u05d5&#8217; \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd. \u05dc\u05de\u05e9\u05dc \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05e7\u05d1\u05dc \u05de\u05ea\u05d5\u05da \u05e8\u05e9\u05d9\u05de\u05ea \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d4\u05dd \u05de\u05e0\u05d4\u05dc\u05d9 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea, \u05e0\u05e2\u05e9\u05d4 \u05d6\u05d0\u05ea \u05de\u05df \u05d4\u05e1\u05ea\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea Linq. \u05d0\u05d6 \u05d0\u05d9\u05da Linq \u05e2\u05d5\u05d1\u05d3? \u05db\u05d9\u05d3\u05d5\u05e2 #C \u05d4\u05d9\u05d0 \u05e9\u05e4\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea, \u05d5\u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd (types) \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05e7\u05d1\u05d5\u05e2\u05d9\u05dd \u05d5\u05de\u05d5\u05d2\u05d3\u05e8\u05d9\u05dd. \u05d5\u05dc\u05db\u05df, \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d1\u05e9\u05dd Where, \u05e9\u05ea\u05d7\u05d6\u05d9\u05e8 \u05dc\u05e0\u05d5 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05de\u05d8\u05d9\u05e4\u05d5\u05e1 Employee, \u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05d3\u05d0\u05d5\u05d2 \u05dc\u05da \u05e9\u05de\u05ea\u05d5\u05d3\u05ea Where \u05de\u05db\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e9\u05dc\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e4\u05ea\u05d9\u05e2 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05d0\u05d9\u05dd \u05e9Linq \u05ea\u05d5\u05de\u05db\u05ea \u05d1\u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d9\u05dd, \u05d0\u05e4\u05d9\u05dc\u05d5 \u05d0\u05dd \u05d4\u05e8\u05d2\u05e2 \u05d4\u05d2\u05d3\u05e8\u05e0\u05d5 \u05d0\u05d5\u05ea\u05dd. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d9\u05d5 \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05dc\u05e0\u05d5 Interface \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4, \u05d5\u05e9\u05d4Interface \u05d4\u05d6\u05d4 \u05de\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e0\u05d7\u05d5\u05e6\u05d5\u05ea, \u05e2\u05d3\u05d9\u05d9\u05df \u05d4\u05d9\u05ea\u05d4 \u05d1\u05e2\u05d9\u05d4 \u05d1\u05d2\u05dc\u05dc \u05e9\u05db\u05dc \u05de\u05d9 \u05e9\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4 Interface \u05d4\u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e6\u05e8\u05d9\u05da \u05dc\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05d0\u05dc\u05d4. \u05d5\u05d0\u05dd \u05e4\u05ea\u05d0\u05d5\u05dd \u05d4\u05d9\u05d5 \u05de\u05d7\u05dc\u05d9\u05d8\u05d9\u05dd \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e2\u05d5\u05d3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea, \u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e9\u05d5\u05d1\u05e8 \u05d0\u05ea \u05d4Interface. \u05d0\u05d6 \u05de\u05d4 \u05e2\u05d5\u05e9\u05d9\u05dd? \u05db\u05d0\u05e9\u05e8 \u05d7\u05d9\u05e4\u05e9\u05d5 \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d0\u05ea \u05d4\u05de\u05db\u05e0\u05d4 \u05d4\u05de\u05e9\u05d5\u05ea\u05e3 \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 (\u05de\u05d1\u05d7\u05d9\u05e0\u05ea \u05d4\u05d9\u05e8\u05e8\u05db\u05d9\u05d9\u05ea \u05d9\u05e8\u05d5\u05e9\u05d4) \u05e9\u05dc \u05de\u05d1\u05e0\u05d9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d4\u05dd \u05d1\u05d7\u05e8\u05d5 \u05d0\u05ea \u05d4 Interface\u00a0IEnumerable&lt;T>. IEnumerable&lt;t&gt; \u05d4\u05d5\u05d0 \u05d4\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1 \u05d4\u05de\u05ea\u05d0\u05d9\u05dd \u05d1\u05d9\u05d5\u05ea\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e7\u05e9\u05d5\u05e8\u05d5\u05ea \u05dc\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d5\u05d0 \u05de\u05db\u05d9\u05dc \u05de\u05ea\u05d5\u05d3\u05d4 \u05d0\u05d7\u05ea \u05d5\u05d9\u05d7\u05d9\u05d3\u05d4 \u2013&nbsp;GetEnumerator(). \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d0\u05d7\u05d3 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd. \u05db\u05de\u05d5 \u05dc\u05de\u05e9\u05dc \u05db\u05d0\u05e9\u05e8 \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05d1\u05dc\u05d5\u05dc\u05d0\u05ea ForEach. \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d7\u05dc\u05d9\u05d8\u05d5 \u05e9\u05dc\u05d0 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc IEnumerable&lt;T> \u05d0\u05dc\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d8\u05db\u05e0\u05d9\u05e7\u05d4 \u05e9\u05e0\u05e7\u05e8\u05d0\u05ea Extension Methods, \u05d5\u05e2\u05dc \u05db\u05da \u05e0\u05e8\u05d7\u05d9\u05d1 \u05de\u05e2\u05d8. Extension Methods Extension Methods \u05d4\u05d9\u05d0 \u05d3\u05e8\u05da \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e7\u05d9\u05d9\u05de\u05d5\u05ea \u05de\u05d1\u05dc\u05d9 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05df, \u05d5\u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05d6\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u2013 \u05dc\u05de\u05e8\u05d5\u05ea \u05e9\u05dc\u05de\u05e2\u05e9\u05d4 \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d0\u05d7\u05e8\u05ea. \u05d0\u05d9\u05da \u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3: \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05ea \u05d7\u05d9\u05e9\u05d5\u05d1 \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 DateTime. \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05e8\u05e9\u05ea \u05deDateTime \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d9\u05d5\u05e8\u05e9\u05ea \u05d0\u05ea \u05d4\u05ea\u05d5\u05e1\u05e4\u05ea \u05e9\u05dc\u05d9 \u05d1\u05d2\u05dc\u05dc \u05e9 DateTime \u05d6\u05d4 struct \u05d5\u05dc\u05db\u05df \u05d4\u05d5\u05d0 \u05de\u05d5\u05d2\u05d3\u05e8 \u05db sealed \u05d5\u05d0\u05d9 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05e8\u05e9\u05ea \u05de\u05de\u05e0\u05d5. \u05d0\u05dd \u05db\u05df, \u05d9\u05e8\u05d5\u05e9\u05d4 \u05d0\u05d9\u05e0\u05d4 \u05d1\u05d0\u05d4 \u05d1\u05d7\u05e9\u05d1\u05d5\u05df \u05db\u05d0\u05e9\u05e8 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05e9\u05dc DateTime. \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d0\u05d7\u05ea \u05d4\u05de\u05ea\u05d0\u05d9\u05de\u05d4 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05d9\u05dd \u05d3\u05d5\u05de\u05d9\u05dd \u05d4\u05d9\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05ea\u05d1\u05e0\u05d9\u05ea \u05d4\u05e2\u05d9\u05e6\u05d5\u05d1\u00a0Decorator, \u05db\u05e4\u05d9 \u05e9\u05d4\u05d5\u05e1\u05d1\u05e8 \u05d1\u05e4\u05d5\u05e1\u05d8 \u05e7\u05d5\u05d3\u05dd. \u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05e9\u05d0\u05d5\u05ea\u05d4 \u05e0\u05d3\u05d2\u05d9\u05dd \u05d4\u05d9\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Methods. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d9\u05e9 \u05dc\u05d9 \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc DateTime \u05de\u05d0\u05d5\u05ea\u05d7\u05dc \u05dc\u05ea\u05d0\u05e8\u05d9\u05da \u05db\u05dc\u05e9\u05d4\u05d5 \u05d5\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d3\u05e2\u05ea \u05db\u05de\u05d4 \u05d9\u05de\u05d9\u05dd \u05e0\u05e9\u05d0\u05e8\u05d5 \u05e2\u05d3 \u05dc\u05e1\u05d5\u05e3 \u05d4\u05d7\u05d5\u05d3\u05e9 \u05d4\u05d6\u05d4. \u05d0\u05e0\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05d7\u05e9\u05d1 \u05d0\u05ea \u05d6\u05d4 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTime.DaysInMonth(date.Year, date.Month) &#8211; date.Day; \u05d6\u05d4 \u05d1\u05e1\u05d3\u05e8 \u05d5\u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3, \u05d0\u05d1\u05dc \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05db\u05ea\u05d5\u05d1 \u05d0\u05ea \u05db\u05dc \u05d4\u05e7\u05d5\u05d3 \u05d4\u05d6\u05d4 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd \u05e9\u05d0\u05e0\u05d9 \u05e6\u05e8\u05d9\u05da \u05d0\u05ea \u05d4\u05d7\u05d9\u05e9\u05d5\u05d1 \u05dc\u05d0\u05d5\u05e8\u05da \u05d4\u05e7\u05d5\u05d3. \u05d0\u05de\u05e0\u05dd \u05d4\u05d9\u05d9\u05ea\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e2\u05dd \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05d0\u05d1\u05dc \u05d6\u05d4 \u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e0\u05d5\u05d7 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9. \u05d4\u05d9\u05d9\u05ea\u05d9 \u05de\u05e2\u05d3\u05d9\u05e3 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05d7\u05e9\u05d1\u05ea \u05d0\u05ea \u05d6\u05d4 \u05db\u05d7\u05dc\u05e7 \u05d0\u05d9\u05e0\u05d8\u05d2\u05e8\u05dc\u05d9 \u05de DateTime. \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: public static class DateTimeExtensions 2: { 3: public static int DaysToEndOfMonth(DateTime date) 4: { 5: return DateTime.DaysInMonth(date.Year, date.Month) &#8211; date.Day; 6: } 7: } \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTimeExtensions.DaysToEndOfMonth(date); \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05d4\u05d6\u05d5, \u05de\u05dc\u05d1\u05d3 \u05d0\u05d9 \u05e0\u05d5\u05d7\u05d5\u05ea \u05d4\u05db\u05ea\u05d9\u05d1\u05d4 \u05d9\u05e9 \u05d2\u05dd \u05e7\u05d5\u05e9\u05d9 \u05dc\u05e7\u05e8\u05d5\u05d0 \u05d0\u05ea \u05d4\u05e7\u05d5\u05d3 \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05dc\u05d0 \u05db\u05d5\u05dc\u05dd \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05de\u05d4\u05d9 \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d7\u05d3\u05e9\u05d4 \u05d0\u05d5\u05ea\u05d4 \u05d4\u05d2\u05d3\u05e8\u05ea\u05d9. \u05d5\u05e2\u05db\u05e9\u05d9\u05d5 \u05dc\u05e7\u05e1\u05dd\u2026. \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05de\u05d9\u05dc\u05d4&nbsp;this&nbsp;\u05dc\u05e4\u05e0\u05d9 \u05e9\u05dd \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 DateTime \u05d1\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05e9\u05dc\u05d9, \u05d0\u05e0\u05d9 \u05d2\u05d5\u05e8\u05dd \u05dc\u05db\u05da \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d6\u05d5 \u05e0\u05d5\u05e1\u05e4\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1 DateTime \u05e2\u05e6\u05de\u05d5. \u05db\u05e2\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05ea\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static int DaysToEndOfMonth(this DateTime date) 2: { 3: return DateTime.DaysInMonth(date.Year, date.Month) &#8211; date.Day; 4: } \u05d5\u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05e4\u05e9\u05d5\u05d8 \u05db\u05da: 1: int daysUntilEndOfMonth = date.DaysToEndOfMonth(); \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e2\u05d5\u05de\u05d3\u05ea \u05d1\u05e4\u05e0\u05d9 \u05e2\u05e6\u05de\u05d4 \u05d0\u05da \u05d1\u05e2\u05d6\u05e8\u05ea \u05d8\u05e8\u05d9\u05e7 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d4\u05d9\u05d0 \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05ea\u05d5\u05da \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4, \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Method, \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05d5\u05d1\u05e0\u05d5\u05ea \u05d1\u05e9\u05e4\u05d4, \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1\u05d9\u05dd. \u05d1\u05d7\u05d6\u05e8\u05d4 \u05dcLINQ \u05d4\u05d6\u05db\u05e8\u05e0\u05d5 \u05d0\u05ea IEnumareble&lt;T&gt; \u05db\u05de\u05d5\u05e2\u05de\u05d3 \u05e4\u05d5\u05d8\u05e0\u05e6\u05d9\u05d0\u05dc\u05d9 \u05dc\u05d4\u05d7\u05d6\u05e7\u05ea \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea, \u05d0\u05d1\u05dc \u05d0\u05de\u05e8\u05e0\u05d5 \u05e9\u05dc\u05d0 \u05e8\u05e6\u05d5 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05d4, \u05d5\u05dc\u05db\u05df \u05d4\u05d3\u05e8\u05da \u05d4\u05e0\u05db\u05d5\u05e0\u05d4 \u05d4\u05d9\u05d0 \u05dc\u05d9\u05e6\u05e8 \u05de\u05d7\u05dc\u05e7\u05d4 \u05d9\u05d9\u05e2\u05d5\u05d3\u05d9\u05ea \u05dc\u05e2\u05e0\u05d9\u05d9\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Extension Method\u05dc IEnumareble&lt;T&gt;. \u05dc\u05de\u05e9\u05dc \u05d4\u05d9\u05d4 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d9\u05e6\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e7\u05d1\u05dc\u05ea \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 IEnumerable&lt;string> \u05d5\u05de\u05e1\u05e0\u05e0\u05ea \u05e8\u05e7 \u05d0\u05ea \u05d0\u05dc\u05d5 \u05d1\u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05de\u05ea\u05d7\u05d9\u05dc\u05d9\u05dd \u05d1\u05d0\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea, \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;string&gt; StringThatStartWith 4: (this IEnumerable&lt;string&gt; input,string start ) 5: { 6: foreach (var s in input) 7: { 8: if (s.StartsWith(start)) 9: { 10: yield return s; 11: } 12: } 13: } 14: } \u05d5\u05d0\u05d6 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d6\u05d4 \u05dc\u05de\u05e9\u05dc \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: IEnumerable&lt;string&gt; employees = new[] {&#8220;Avi&#8221;, &#8220;Danny&#8221;, &#8220;Moshe&#8221;}; 2: var startWithA = employees.StringThatStartWith(&#8220;A&#8221;); \u05d5\u05d6\u05d4 \u05db\u05de\u05d5\u05d1\u05df \u05d1\u05ea\u05e0\u05d0\u05d9 \u05e9\u05d9\u05e9 \u05dc\u05d9 using \u05dc namespace \u05e9\u05d1\u05d5 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d4extensions \u05e9\u05dc\u05d9. \u05d1\u05d3\u05d9\u05d5\u05e7 \u05d1\u05d3\u05e8\u05da \u05d4\u05d6\u05d5 LINQ \u05e2\u05d5\u05d1\u05d3. \u05de\u05d5\u05e1\u05d9\u05e4\u05d9\u05dd \u05d0\u05ea \u05d4namespace system.Linq \u05d5\u05d1\u05db\u05da \u05de\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5\u05ea \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05e8\u05d1\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05da \u05e9\u05dc\u05e0\u05d5. \u05e2\u05d3\u05d9\u05d9\u05df \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05de\u05ea\u05d5\u05d3\u05ea where \u05dc\u05de\u05e9\u05dc, \u05d9\u05d5\u05d3\u05e2\u05ea \u05dc\u05e1\u05e0\u05df \u05dc\u05e4\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05d9\u05dd \u05e9\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05e8\u05e7 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc\u05d9? \u05d0\u05d9\u05da \u05e2\u05d5\u05e9\u05d9\u05dd \u05e9\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d2\u05e0\u05e8\u05d9 \u05e2\u05d3 \u05db\u05d3\u05d9 \u05db\u05da? \u05e0\u05d7\u05d6\u05d5\u05e8 \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5: \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5 \u05d9\u05e9 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05ea\u05d5\u05da \u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 \u05d0\u05e0\u05d9 \u05de\u05e2\u05d5\u05e0\u05d9\u05d9\u05df \u05e9\u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05d9\u05d2\u05d3\u05d9\u05e8 \u05dc\u05d9 \u05de\u05d4 \u05dc\u05e1\u05e0\u05df \u05d5\u05e2\u05dc \u05e4\u05d9 \u05d0\u05d9\u05d6\u05d4 \u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df. \u05d0\u05dd \u05db\u05da \u05e0\u05e9\u05e0\u05d4 \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05dc\u05de\u05e9\u05d4\u05d5 \u05d2\u05e0\u05e8\u05d9 \u05d9\u05d5\u05ea\u05e8 (\u05d1\u05e2\u05d6\u05e8\u05ea T) \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d0\u05ea \u05d4\u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df \u05dc\u05e1\u05d9\u05e0\u05d5\u05df (\u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05d1\u05de\u05e7\u05e8\u05d4 \u05e9\u05dc\u05e0\u05d5) \u05e0\u05d2\u05d3\u05d9\u05e8 delegate \u05e9\u05d0\u05e3 \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc T \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 (\u05d5\u05d6\u05d4 \u05d1\u05e9\u05d1\u05d9\u05dc \u05dc\u05e4\u05dc\u05d8\u05e8 \u2013 \u05db\u05dc\u05d5\u05de\u05e8 \u05dc\u05d3\u05e2\u05ea \u05d4\u05d0\u05dd item \u05db\u05dc\u05e9\u05d4\u05d5 \u05e7\u05d9\u05d9\u05dd \u05d1\u05e8\u05e9\u05d9\u05de\u05d4). \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input,FilterDelegate&lt;T&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14:&nbsp; 15: public delegate bool FilterDelegate&lt;T&gt;(T item); 16: } \u05d1\u05e9\u05dc\u05d1 \u05d4\u05d6\u05d4 \u05e0\u05d5\u05db\u05dc \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05dc\u05e0\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05e9\u05dc\u05d4\u05df \u05d5\u05d0\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e9\u05d9\u05e6\u05e8\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: static void Main(string[] args) 2: { 3: IEnumerable&lt;string&gt; employees = new[] { &#8220;Avi&#8221;, &#8220;Danny&#8221;, &#8220;Moshe&#8221; }; 4: var startWithA = employees.Filter(StringThatStartWithA); 5: } 6:&nbsp; 7: private static bool StringThatStartWithA(string s) 8: { 9: return s.StartsWith(&#8220;A&#8221;); 10: } \u05d0\u05de\u05e0\u05dd, \u05e9\u05d9\u05d8\u05d4 \u05d6\u05d5 \u05dc\u05d0 \u05e0\u05d5\u05d7\u05d4 \u05d1\u05db\u05dc\u05dc \u05d1\u05d2\u05dc\u05dc \u05e9\u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e2\u05dc \u05db\u05dc \u05d0\u05d5\u05ea \u05d5\u05d0\u05d5\u05ea \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05e2\u05dc\u05d5\u05dc\u05d9\u05dd \u05dc\u05d1\u05d3\u05d5\u05e7. \u05d0\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d6\u05d5 \u05e0\u05e4\u05ea\u05d5\u05e8 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 anonymous delegate. \u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e9\u05dc\u05d5\u05d7 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05ea \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e0\u05db\u05ea\u05d5\u05d1 \u05db\u05da: 1: var startWithA = employees.Filter(delegate(string item) 2: { 3: return item.StartsWith(&#8220;A&#8221;); 4: }); 5:&nbsp; \u05d6\u05d4 \u05d7\u05d5\u05e1\u05da \u05dc\u05e0\u05d5 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea, \u05d0\u05da \u05e2\u05d3\u05d9\u05d9\u05df \u05d6\u05d4 \u05dc\u05d0 \u05d2\u05e0\u05e8\u05d9. \u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d6\u05d4 \u05dc\u05d9\u05d5\u05ea\u05e8 \u05d2\u05e0\u05e8\u05d9, \u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05de\u05d4 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05e9\u05dc \u05d4\u05e9\u05e4\u05d4 \u2013 \u05d9\u05e9 \u05db\u05de\u05d4 \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05de\u05e8\u05d0\u05e9 \u05d5\u05d6\u05d4 \u05e9 Filter \u05de\u05e7\u05d1\u05dc delegate \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4\u05de\u05d9\u05dc\u05d4 delegate. \u05db\u05de\u05d5 \u05db\u05df \u05d9\u05d3\u05d5\u05e2 \u05e9\u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05d5\u05d0 \u05de\u05e1\u05d5\u05d2 string \u05d1\u05d2\u05dc\u05dc \u05e9\u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05e9\u05dc string, \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 string. \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 return \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8, \u05d5\u05db\u05df \u05de\u05d4\u05e1\u05d5\u05d2\u05e8\u05d9\u05d9\u05dd \u05d4\u05de\u05e1\u05d5\u05dc\u05e1\u05dc\u05d5\u05ea. \u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea \u05d4\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8 =&gt; (goes to) \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05dc\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e9\u05d6\u05d4 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05e9\u05dc\u05e0\u05d5. \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05e0\u05e8\u05d0\u05d4 \u05db\u05da: 1: var startWithA = employees.Filter((item)=&gt;item.StartsWith(&#8220;A&#8221;)); \u05e0\u05e8\u05d0\u05d4 \u05e7\u05e6\u05ea \u05de\u05d5\u05db\u05e8? \u05e1\u05d9\u05de\u05df \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05de\u05ea\u05e7\u05e8\u05d1\u05d9\u05dd \u05dc\u05d9\u05e2\u05d3\u2026 \u05e0\u05e9\u05d0\u05e8\u05e0\u05d5 \u05e2\u05dd \u05d0\u05d5\u05ea\u05d5 delegate \u05d0\u05d1\u05dc \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05e7\u05d5\u05d3. \u05e6\u05d5\u05e8\u05ea \u05db\u05ea\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05e0\u05e7\u05e8\u05d0\u05ea Lambda Expression \u05e9\u05d1\u05e2\u05d6\u05e8\u05ea\u05d4 \u05db\u05d5\u05ea\u05d1\u05d9\u05dd delegate \u05d4\u05d7\u05dc \u05de C# 3.0. \u05d4\u05e6\u05d3 \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05e9\u05dc \u05d4\u05de\u05e9\u05d5\u05d5\u05d0\u05d4 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u2013 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc\u05ea \u05db\u05e4\u05e8\u05de\u05d8\u05e8 string (\u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d9\u05d0 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e9\u05dc string). \u05d5\u05d4\u05e6\u05d3 \u05d4\u05d9\u05de\u05e0\u05d9 \u05d4\u05d5\u05d0 \u05d4\u05e4\u05e2\u05d5\u05dc\u05d4 \u05e2\u05e6\u05de\u05d4. \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1&nbsp;Func \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 Func \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05d5\u05e8\u05db\u05d1 \u05d4\u05de\u05db\u05de\u05e1 (Encapsulate) delegate. \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc Func \u05de\u05ea\u05d0\u05e8\u05ea delegate \u05db\u05d0\u05e9\u05e8 \u05d4\u05d9\u05d0 \u05de\u05db\u05d9\u05dc\u05d4 \u05e9\u05e0\u05d9 \u05d7\u05dc\u05e7\u05d9\u05dd \u2013 \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df, \u05d0\u05d5 \u05d4\u05d7\u05dc\u05e7\u05d9\u05dd \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05dd, \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05e0\u05e9\u05dc\u05d7\u05d9\u05dd \u05d0\u05dc \u05d4delegate. \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e9\u05e0\u05d9 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8 \u05de\u05d4 delegate. \u05dc\u05de\u05e9\u05dc \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d9\u05d7\u05d9\u05d3 \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 int \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d5\u05db\u05df \u05d4\u05dc\u05d0\u05d4. \u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05dc\u05d5\u05d7 \u05e2\u05d3 \u05d7\u05de\u05e9 \u05e2\u05e9\u05e8\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd, \u05db\u05d0\u05e9\u05e8 \u05ea\u05de\u05d9\u05d3 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d4\u05d5\u05d0 \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e0\u05d5\u05db\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05d4\u05d3\u05e4\u05e1\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05de\u05db\u05e4\u05dc\u05d4 \u05e9\u05dc\u05d4\u05dd. \u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: Func&lt;int, int, int&gt; Multi = (x, y) =&gt; x*y; 2: Console.WriteLine(Multi(3,5)); \u05db\u05d0\u05de\u05d5\u05e8 \u2013 \u05d4 int \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05d0\u05dd \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Action \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. \u05d4\u05dd \u05d6\u05d4\u05d9\u05dd \u05dc\u05de\u05e2\u05d8 \u05e9\u05dc Action \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8. \u05d1\u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc LINQ, \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Func \u05e2\u05d5\u05d6\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4 delegate \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d4 \u05dc\u05e7\u05d1\u05dc Func \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input, Func&lt;T,bool&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14: } \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4 LINQ \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05d1\u05d0\u05d5\u05e4\u05df \u05d7\u05d5\u05e4\u05e9\u05d9 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dc \u05e4\u05d9\u05d4\u05dd \u05d0\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e1\u05e0\u05df \u05d5\u05d0\u05e3 \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05e0\u05d5\u05df \u05e2\u05dc \u05d2\u05d1\u05d9 \u05e1\u05d9\u05e0\u05d5\u05df \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: var result = employees.Where(e =&gt; e.StartsWith(&#8220;A&#8221;)) 2: .OrderByDescending(e =&gt; e.Length); 3:&nbsp; Linq&nbsp;\u05d5&nbsp;Entityframework \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 Entityframework, \u05e9\u05d4\u05d5\u05d0 \u05e2\u05e6\u05de\u05d5 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ, \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05d4\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 LINQ \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05e2\u05d1\u05d5\u05d3 \u05de\u05d5\u05dc \u05de\u05e1\u05d3 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05dc \u05db\u05da \u05d2\u05d3\u05d5\u05dc. \u05d0\u05d9\u05df \u05d4\u05e8\u05d1\u05d4 \u05d4\u05d2\u05d9\u05d5\u05df \u05d1\u05d4\u05d1\u05d0\u05ea \u05d4 Data Base \u05db\u05d5\u05dc\u05d5 \u05dc\u05d6\u05d9\u05db\u05e8\u05d5\u05df \u05e2\u05dc \u05de\u05e0\u05ea \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05ea\u05e9\u05d0\u05dc \u05d0\u05d5\u05ea\u05d5. \u05d5\u05dc\u05db\u05df Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05d3\u05e8\u05da \u05de\u05e2\u05d8 \u05e9\u05d5\u05e0\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ \u05d1\u05e6\u05d5\u05e8\u05d4 \u05db\u05d6\u05d5 \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05dc\u05d0 \u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d1\u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd, \u05d0\u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d4 \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e9\u05ea\u05dc\u05da \u05d0\u05d7\u05e8 \u05db\u05da \u05dc SQL. \u05d4\u05d3\u05d1\u05e8 \u05de\u05ea\u05e8\u05d7\u05e9 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d5\u05e9\u05d2 \u05e9\u05e0\u05e7\u05e8\u05d0 Expression \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. Expression \u05e2\u05d5\u05d8\u05e4\u05d9\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 Func \u05d5\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05dc\u05ea\u05e8\u05d2\u05dd Func \u05e9\u05e2\u05d8\u05d5\u05e3 \u05d1Expression \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea. \u05d5\u05db\u05d0\u05e9\u05e8 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05d4\u05d6\u05d5 \u05ea\u05d9\u05e9\u05dc\u05d7 \u05dcDatabase \u05d4\u05d9\u05d0 \u05ea\u05d7\u05d6\u05d9\u05e8 \u05e8\u05e7 \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05d1\u05d5\u05e7\u05e9\u05d9\u05dd \u05d5\u05dc\u05d0 \u05d0\u05ea \u05db\u05dc \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd. \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d4\u05d4\u05d1\u05e0\u05d4, \u05e0\u05e6\u05d9\u05d9\u05df \u05e9 Entityframework \u05dc\u05d0 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1 IEnumerable&lt;T&gt; \u05db\u05de\u05d5 \u05d1LINQ \u05e8\u05d2\u05d9\u05dc, \u05d0\u05dc\u05d0 \u05d1&nbsp;IQuetyable&lt;T&gt;. \u05e9\u05d0\u05de\u05e0\u05dd \u05d9\u05d5\u05e8\u05e9 \u05de IEnumerable \u05d0\u05dc\u05d0 \u05e9\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc Func \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc Expression. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Func \u05d4\u05d5\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dcdelegate \u05d5\u05d0\u05d6 \u05dc IL. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Expression \u05d4\u05d5\u05d0 \u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dc IL, \u05d0\u05dc\u05d0 \u05dc\u05de\u05d1\u05e0\u05d4 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d9\u05dd \u05d5\u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea. Entityframework \u05d5\u05d3\u05d5\u05de\u05d9\u05d5 \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05dc\u05e7\u05d7\u05ea \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4 \u05d5\u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05dd \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05de\u05d5\u05dc \u05d1\u05e1\u05d9\u05e1 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,1],"tags":[19,3,20,22,21,23],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-c","category-solid","tag-delegate","tag-dev","tag-entityframework","tag-expression","tag-extension-methods","tag-func"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hernan-yehuda.net\/?p=161\" \/>\n<meta property=\"og:locale\" content=\"he_IL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living\" \/>\n<meta property=\"og:description\" content=\"Linq \u05d4\u05d9\u05d0 \u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05e0\u05d5 \u05dc\u05ea\u05e9\u05d0\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea \u05e7\u05d5\u05d3 #C. \u05d4\u05db\u05d5\u05d5\u05e0\u05d4 \u05d1\u05de\u05d9\u05dc\u05d4 &#8216;\u05dc\u05ea\u05e9\u05d0\u05dc&#8217; \u05d4\u05d9\u05d0 \u05dc\u05db\u05da \u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d7\u05de\u05d9\u05e9\u05d9\u05dd \u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8\u05d9\u05dd \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05dc\u05de\u05d9\u05d9\u05df, \u05dc\u05e1\u05e0\u05df, \u05dc\u05d0\u05d7\u05d3 \u05d5\u05db\u05d5&#8217; \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd. \u05dc\u05de\u05e9\u05dc \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05e7\u05d1\u05dc \u05de\u05ea\u05d5\u05da \u05e8\u05e9\u05d9\u05de\u05ea \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d4\u05dd \u05de\u05e0\u05d4\u05dc\u05d9 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea, \u05e0\u05e2\u05e9\u05d4 \u05d6\u05d0\u05ea \u05de\u05df \u05d4\u05e1\u05ea\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea Linq. \u05d0\u05d6 \u05d0\u05d9\u05da Linq \u05e2\u05d5\u05d1\u05d3? \u05db\u05d9\u05d3\u05d5\u05e2 #C \u05d4\u05d9\u05d0 \u05e9\u05e4\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea, \u05d5\u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd (types) \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05e7\u05d1\u05d5\u05e2\u05d9\u05dd \u05d5\u05de\u05d5\u05d2\u05d3\u05e8\u05d9\u05dd. \u05d5\u05dc\u05db\u05df, \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d1\u05e9\u05dd Where, \u05e9\u05ea\u05d7\u05d6\u05d9\u05e8 \u05dc\u05e0\u05d5 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05de\u05d8\u05d9\u05e4\u05d5\u05e1 Employee, \u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05d3\u05d0\u05d5\u05d2 \u05dc\u05da \u05e9\u05de\u05ea\u05d5\u05d3\u05ea Where \u05de\u05db\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e9\u05dc\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e4\u05ea\u05d9\u05e2 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05d0\u05d9\u05dd \u05e9Linq \u05ea\u05d5\u05de\u05db\u05ea \u05d1\u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d9\u05dd, \u05d0\u05e4\u05d9\u05dc\u05d5 \u05d0\u05dd \u05d4\u05e8\u05d2\u05e2 \u05d4\u05d2\u05d3\u05e8\u05e0\u05d5 \u05d0\u05d5\u05ea\u05dd. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d9\u05d5 \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05dc\u05e0\u05d5 Interface \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4, \u05d5\u05e9\u05d4Interface \u05d4\u05d6\u05d4 \u05de\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e0\u05d7\u05d5\u05e6\u05d5\u05ea, \u05e2\u05d3\u05d9\u05d9\u05df \u05d4\u05d9\u05ea\u05d4 \u05d1\u05e2\u05d9\u05d4 \u05d1\u05d2\u05dc\u05dc \u05e9\u05db\u05dc \u05de\u05d9 \u05e9\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4 Interface \u05d4\u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e6\u05e8\u05d9\u05da \u05dc\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05d0\u05dc\u05d4. \u05d5\u05d0\u05dd \u05e4\u05ea\u05d0\u05d5\u05dd \u05d4\u05d9\u05d5 \u05de\u05d7\u05dc\u05d9\u05d8\u05d9\u05dd \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e2\u05d5\u05d3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea, \u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e9\u05d5\u05d1\u05e8 \u05d0\u05ea \u05d4Interface. \u05d0\u05d6 \u05de\u05d4 \u05e2\u05d5\u05e9\u05d9\u05dd? \u05db\u05d0\u05e9\u05e8 \u05d7\u05d9\u05e4\u05e9\u05d5 \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d0\u05ea \u05d4\u05de\u05db\u05e0\u05d4 \u05d4\u05de\u05e9\u05d5\u05ea\u05e3 \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 (\u05de\u05d1\u05d7\u05d9\u05e0\u05ea \u05d4\u05d9\u05e8\u05e8\u05db\u05d9\u05d9\u05ea \u05d9\u05e8\u05d5\u05e9\u05d4) \u05e9\u05dc \u05de\u05d1\u05e0\u05d9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d4\u05dd \u05d1\u05d7\u05e8\u05d5 \u05d0\u05ea \u05d4 Interface\u00a0IEnumerable&lt;T&gt;. IEnumerable&lt;t&gt; \u05d4\u05d5\u05d0 \u05d4\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1 \u05d4\u05de\u05ea\u05d0\u05d9\u05dd \u05d1\u05d9\u05d5\u05ea\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e7\u05e9\u05d5\u05e8\u05d5\u05ea \u05dc\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d5\u05d0 \u05de\u05db\u05d9\u05dc \u05de\u05ea\u05d5\u05d3\u05d4 \u05d0\u05d7\u05ea \u05d5\u05d9\u05d7\u05d9\u05d3\u05d4 \u2013&nbsp;GetEnumerator(). \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d0\u05d7\u05d3 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd. \u05db\u05de\u05d5 \u05dc\u05de\u05e9\u05dc \u05db\u05d0\u05e9\u05e8 \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05d1\u05dc\u05d5\u05dc\u05d0\u05ea ForEach. \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d7\u05dc\u05d9\u05d8\u05d5 \u05e9\u05dc\u05d0 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc IEnumerable&lt;T&gt; \u05d0\u05dc\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d8\u05db\u05e0\u05d9\u05e7\u05d4 \u05e9\u05e0\u05e7\u05e8\u05d0\u05ea Extension Methods, \u05d5\u05e2\u05dc \u05db\u05da \u05e0\u05e8\u05d7\u05d9\u05d1 \u05de\u05e2\u05d8. Extension Methods Extension Methods \u05d4\u05d9\u05d0 \u05d3\u05e8\u05da \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e7\u05d9\u05d9\u05de\u05d5\u05ea \u05de\u05d1\u05dc\u05d9 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05df, \u05d5\u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05d6\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u2013 \u05dc\u05de\u05e8\u05d5\u05ea \u05e9\u05dc\u05de\u05e2\u05e9\u05d4 \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d0\u05d7\u05e8\u05ea. \u05d0\u05d9\u05da \u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3: \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05ea \u05d7\u05d9\u05e9\u05d5\u05d1 \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 DateTime. \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05e8\u05e9\u05ea \u05deDateTime \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d9\u05d5\u05e8\u05e9\u05ea \u05d0\u05ea \u05d4\u05ea\u05d5\u05e1\u05e4\u05ea \u05e9\u05dc\u05d9 \u05d1\u05d2\u05dc\u05dc \u05e9 DateTime \u05d6\u05d4 struct \u05d5\u05dc\u05db\u05df \u05d4\u05d5\u05d0 \u05de\u05d5\u05d2\u05d3\u05e8 \u05db sealed \u05d5\u05d0\u05d9 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05e8\u05e9\u05ea \u05de\u05de\u05e0\u05d5. \u05d0\u05dd \u05db\u05df, \u05d9\u05e8\u05d5\u05e9\u05d4 \u05d0\u05d9\u05e0\u05d4 \u05d1\u05d0\u05d4 \u05d1\u05d7\u05e9\u05d1\u05d5\u05df \u05db\u05d0\u05e9\u05e8 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05e9\u05dc DateTime. \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d0\u05d7\u05ea \u05d4\u05de\u05ea\u05d0\u05d9\u05de\u05d4 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05d9\u05dd \u05d3\u05d5\u05de\u05d9\u05dd \u05d4\u05d9\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05ea\u05d1\u05e0\u05d9\u05ea \u05d4\u05e2\u05d9\u05e6\u05d5\u05d1\u00a0Decorator, \u05db\u05e4\u05d9 \u05e9\u05d4\u05d5\u05e1\u05d1\u05e8 \u05d1\u05e4\u05d5\u05e1\u05d8 \u05e7\u05d5\u05d3\u05dd. \u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05e9\u05d0\u05d5\u05ea\u05d4 \u05e0\u05d3\u05d2\u05d9\u05dd \u05d4\u05d9\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Methods. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d9\u05e9 \u05dc\u05d9 \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc DateTime \u05de\u05d0\u05d5\u05ea\u05d7\u05dc \u05dc\u05ea\u05d0\u05e8\u05d9\u05da \u05db\u05dc\u05e9\u05d4\u05d5 \u05d5\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d3\u05e2\u05ea \u05db\u05de\u05d4 \u05d9\u05de\u05d9\u05dd \u05e0\u05e9\u05d0\u05e8\u05d5 \u05e2\u05d3 \u05dc\u05e1\u05d5\u05e3 \u05d4\u05d7\u05d5\u05d3\u05e9 \u05d4\u05d6\u05d4. \u05d0\u05e0\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05d7\u05e9\u05d1 \u05d0\u05ea \u05d6\u05d4 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTime.DaysInMonth(date.Year, date.Month) - date.Day; \u05d6\u05d4 \u05d1\u05e1\u05d3\u05e8 \u05d5\u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3, \u05d0\u05d1\u05dc \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05db\u05ea\u05d5\u05d1 \u05d0\u05ea \u05db\u05dc \u05d4\u05e7\u05d5\u05d3 \u05d4\u05d6\u05d4 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd \u05e9\u05d0\u05e0\u05d9 \u05e6\u05e8\u05d9\u05da \u05d0\u05ea \u05d4\u05d7\u05d9\u05e9\u05d5\u05d1 \u05dc\u05d0\u05d5\u05e8\u05da \u05d4\u05e7\u05d5\u05d3. \u05d0\u05de\u05e0\u05dd \u05d4\u05d9\u05d9\u05ea\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e2\u05dd \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05d0\u05d1\u05dc \u05d6\u05d4 \u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e0\u05d5\u05d7 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9. \u05d4\u05d9\u05d9\u05ea\u05d9 \u05de\u05e2\u05d3\u05d9\u05e3 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05d7\u05e9\u05d1\u05ea \u05d0\u05ea \u05d6\u05d4 \u05db\u05d7\u05dc\u05e7 \u05d0\u05d9\u05e0\u05d8\u05d2\u05e8\u05dc\u05d9 \u05de DateTime. \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: public static class DateTimeExtensions 2: { 3: public static int DaysToEndOfMonth(DateTime date) 4: { 5: return DateTime.DaysInMonth(date.Year, date.Month) - date.Day; 6: } 7: } \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTimeExtensions.DaysToEndOfMonth(date); \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05d4\u05d6\u05d5, \u05de\u05dc\u05d1\u05d3 \u05d0\u05d9 \u05e0\u05d5\u05d7\u05d5\u05ea \u05d4\u05db\u05ea\u05d9\u05d1\u05d4 \u05d9\u05e9 \u05d2\u05dd \u05e7\u05d5\u05e9\u05d9 \u05dc\u05e7\u05e8\u05d5\u05d0 \u05d0\u05ea \u05d4\u05e7\u05d5\u05d3 \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05dc\u05d0 \u05db\u05d5\u05dc\u05dd \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05de\u05d4\u05d9 \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d7\u05d3\u05e9\u05d4 \u05d0\u05d5\u05ea\u05d4 \u05d4\u05d2\u05d3\u05e8\u05ea\u05d9. \u05d5\u05e2\u05db\u05e9\u05d9\u05d5 \u05dc\u05e7\u05e1\u05dd\u2026. \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05de\u05d9\u05dc\u05d4&nbsp;this&nbsp;\u05dc\u05e4\u05e0\u05d9 \u05e9\u05dd \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 DateTime \u05d1\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05e9\u05dc\u05d9, \u05d0\u05e0\u05d9 \u05d2\u05d5\u05e8\u05dd \u05dc\u05db\u05da \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d6\u05d5 \u05e0\u05d5\u05e1\u05e4\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1 DateTime \u05e2\u05e6\u05de\u05d5. \u05db\u05e2\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05ea\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static int DaysToEndOfMonth(this DateTime date) 2: { 3: return DateTime.DaysInMonth(date.Year, date.Month) - date.Day; 4: } \u05d5\u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05e4\u05e9\u05d5\u05d8 \u05db\u05da: 1: int daysUntilEndOfMonth = date.DaysToEndOfMonth(); \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e2\u05d5\u05de\u05d3\u05ea \u05d1\u05e4\u05e0\u05d9 \u05e2\u05e6\u05de\u05d4 \u05d0\u05da \u05d1\u05e2\u05d6\u05e8\u05ea \u05d8\u05e8\u05d9\u05e7 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d4\u05d9\u05d0 \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05ea\u05d5\u05da \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4, \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Method, \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05d5\u05d1\u05e0\u05d5\u05ea \u05d1\u05e9\u05e4\u05d4, \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1\u05d9\u05dd. \u05d1\u05d7\u05d6\u05e8\u05d4 \u05dcLINQ \u05d4\u05d6\u05db\u05e8\u05e0\u05d5 \u05d0\u05ea IEnumareble&lt;T&gt; \u05db\u05de\u05d5\u05e2\u05de\u05d3 \u05e4\u05d5\u05d8\u05e0\u05e6\u05d9\u05d0\u05dc\u05d9 \u05dc\u05d4\u05d7\u05d6\u05e7\u05ea \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea, \u05d0\u05d1\u05dc \u05d0\u05de\u05e8\u05e0\u05d5 \u05e9\u05dc\u05d0 \u05e8\u05e6\u05d5 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05d4, \u05d5\u05dc\u05db\u05df \u05d4\u05d3\u05e8\u05da \u05d4\u05e0\u05db\u05d5\u05e0\u05d4 \u05d4\u05d9\u05d0 \u05dc\u05d9\u05e6\u05e8 \u05de\u05d7\u05dc\u05e7\u05d4 \u05d9\u05d9\u05e2\u05d5\u05d3\u05d9\u05ea \u05dc\u05e2\u05e0\u05d9\u05d9\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Extension Method\u05dc IEnumareble&lt;T&gt;. \u05dc\u05de\u05e9\u05dc \u05d4\u05d9\u05d4 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d9\u05e6\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e7\u05d1\u05dc\u05ea \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 IEnumerable&lt;string&gt; \u05d5\u05de\u05e1\u05e0\u05e0\u05ea \u05e8\u05e7 \u05d0\u05ea \u05d0\u05dc\u05d5 \u05d1\u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05de\u05ea\u05d7\u05d9\u05dc\u05d9\u05dd \u05d1\u05d0\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea, \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;string&gt; StringThatStartWith 4: (this IEnumerable&lt;string&gt; input,string start ) 5: { 6: foreach (var s in input) 7: { 8: if (s.StartsWith(start)) 9: { 10: yield return s; 11: } 12: } 13: } 14: } \u05d5\u05d0\u05d6 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d6\u05d4 \u05dc\u05de\u05e9\u05dc \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: IEnumerable&lt;string&gt; employees = new[] {&quot;Avi&quot;, &quot;Danny&quot;, &quot;Moshe&quot;}; 2: var startWithA = employees.StringThatStartWith(&quot;A&quot;); \u05d5\u05d6\u05d4 \u05db\u05de\u05d5\u05d1\u05df \u05d1\u05ea\u05e0\u05d0\u05d9 \u05e9\u05d9\u05e9 \u05dc\u05d9 using \u05dc namespace \u05e9\u05d1\u05d5 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d4extensions \u05e9\u05dc\u05d9. \u05d1\u05d3\u05d9\u05d5\u05e7 \u05d1\u05d3\u05e8\u05da \u05d4\u05d6\u05d5 LINQ \u05e2\u05d5\u05d1\u05d3. \u05de\u05d5\u05e1\u05d9\u05e4\u05d9\u05dd \u05d0\u05ea \u05d4namespace system.Linq \u05d5\u05d1\u05db\u05da \u05de\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5\u05ea \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05e8\u05d1\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05da \u05e9\u05dc\u05e0\u05d5. \u05e2\u05d3\u05d9\u05d9\u05df \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05de\u05ea\u05d5\u05d3\u05ea where \u05dc\u05de\u05e9\u05dc, \u05d9\u05d5\u05d3\u05e2\u05ea \u05dc\u05e1\u05e0\u05df \u05dc\u05e4\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05d9\u05dd \u05e9\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05e8\u05e7 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc\u05d9? \u05d0\u05d9\u05da \u05e2\u05d5\u05e9\u05d9\u05dd \u05e9\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d2\u05e0\u05e8\u05d9 \u05e2\u05d3 \u05db\u05d3\u05d9 \u05db\u05da? \u05e0\u05d7\u05d6\u05d5\u05e8 \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5: \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5 \u05d9\u05e9 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05ea\u05d5\u05da \u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 \u05d0\u05e0\u05d9 \u05de\u05e2\u05d5\u05e0\u05d9\u05d9\u05df \u05e9\u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05d9\u05d2\u05d3\u05d9\u05e8 \u05dc\u05d9 \u05de\u05d4 \u05dc\u05e1\u05e0\u05df \u05d5\u05e2\u05dc \u05e4\u05d9 \u05d0\u05d9\u05d6\u05d4 \u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df. \u05d0\u05dd \u05db\u05da \u05e0\u05e9\u05e0\u05d4 \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05dc\u05de\u05e9\u05d4\u05d5 \u05d2\u05e0\u05e8\u05d9 \u05d9\u05d5\u05ea\u05e8 (\u05d1\u05e2\u05d6\u05e8\u05ea T) \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d0\u05ea \u05d4\u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df \u05dc\u05e1\u05d9\u05e0\u05d5\u05df (\u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05d1\u05de\u05e7\u05e8\u05d4 \u05e9\u05dc\u05e0\u05d5) \u05e0\u05d2\u05d3\u05d9\u05e8 delegate \u05e9\u05d0\u05e3 \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc T \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 (\u05d5\u05d6\u05d4 \u05d1\u05e9\u05d1\u05d9\u05dc \u05dc\u05e4\u05dc\u05d8\u05e8 \u2013 \u05db\u05dc\u05d5\u05de\u05e8 \u05dc\u05d3\u05e2\u05ea \u05d4\u05d0\u05dd item \u05db\u05dc\u05e9\u05d4\u05d5 \u05e7\u05d9\u05d9\u05dd \u05d1\u05e8\u05e9\u05d9\u05de\u05d4). \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input,FilterDelegate&lt;T&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14:&nbsp; 15: public delegate bool FilterDelegate&lt;T&gt;(T item); 16: } \u05d1\u05e9\u05dc\u05d1 \u05d4\u05d6\u05d4 \u05e0\u05d5\u05db\u05dc \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05dc\u05e0\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05e9\u05dc\u05d4\u05df \u05d5\u05d0\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e9\u05d9\u05e6\u05e8\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: static void Main(string[] args) 2: { 3: IEnumerable&lt;string&gt; employees = new[] { &quot;Avi&quot;, &quot;Danny&quot;, &quot;Moshe&quot; }; 4: var startWithA = employees.Filter(StringThatStartWithA); 5: } 6:&nbsp; 7: private static bool StringThatStartWithA(string s) 8: { 9: return s.StartsWith(&quot;A&quot;); 10: } \u05d0\u05de\u05e0\u05dd, \u05e9\u05d9\u05d8\u05d4 \u05d6\u05d5 \u05dc\u05d0 \u05e0\u05d5\u05d7\u05d4 \u05d1\u05db\u05dc\u05dc \u05d1\u05d2\u05dc\u05dc \u05e9\u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e2\u05dc \u05db\u05dc \u05d0\u05d5\u05ea \u05d5\u05d0\u05d5\u05ea \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05e2\u05dc\u05d5\u05dc\u05d9\u05dd \u05dc\u05d1\u05d3\u05d5\u05e7. \u05d0\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d6\u05d5 \u05e0\u05e4\u05ea\u05d5\u05e8 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 anonymous delegate. \u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e9\u05dc\u05d5\u05d7 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05ea \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e0\u05db\u05ea\u05d5\u05d1 \u05db\u05da: 1: var startWithA = employees.Filter(delegate(string item) 2: { 3: return item.StartsWith(&quot;A&quot;); 4: }); 5:&nbsp; \u05d6\u05d4 \u05d7\u05d5\u05e1\u05da \u05dc\u05e0\u05d5 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea, \u05d0\u05da \u05e2\u05d3\u05d9\u05d9\u05df \u05d6\u05d4 \u05dc\u05d0 \u05d2\u05e0\u05e8\u05d9. \u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d6\u05d4 \u05dc\u05d9\u05d5\u05ea\u05e8 \u05d2\u05e0\u05e8\u05d9, \u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05de\u05d4 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05e9\u05dc \u05d4\u05e9\u05e4\u05d4 \u2013 \u05d9\u05e9 \u05db\u05de\u05d4 \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05de\u05e8\u05d0\u05e9 \u05d5\u05d6\u05d4 \u05e9 Filter \u05de\u05e7\u05d1\u05dc delegate \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4\u05de\u05d9\u05dc\u05d4 delegate. \u05db\u05de\u05d5 \u05db\u05df \u05d9\u05d3\u05d5\u05e2 \u05e9\u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05d5\u05d0 \u05de\u05e1\u05d5\u05d2 string \u05d1\u05d2\u05dc\u05dc \u05e9\u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05e9\u05dc string, \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 string. \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 return \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8, \u05d5\u05db\u05df \u05de\u05d4\u05e1\u05d5\u05d2\u05e8\u05d9\u05d9\u05dd \u05d4\u05de\u05e1\u05d5\u05dc\u05e1\u05dc\u05d5\u05ea. \u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea \u05d4\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8 =&gt; (goes to) \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05dc\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e9\u05d6\u05d4 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05e9\u05dc\u05e0\u05d5. \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05e0\u05e8\u05d0\u05d4 \u05db\u05da: 1: var startWithA = employees.Filter((item)=&gt;item.StartsWith(&quot;A&quot;)); \u05e0\u05e8\u05d0\u05d4 \u05e7\u05e6\u05ea \u05de\u05d5\u05db\u05e8? \u05e1\u05d9\u05de\u05df \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05de\u05ea\u05e7\u05e8\u05d1\u05d9\u05dd \u05dc\u05d9\u05e2\u05d3\u2026 \u05e0\u05e9\u05d0\u05e8\u05e0\u05d5 \u05e2\u05dd \u05d0\u05d5\u05ea\u05d5 delegate \u05d0\u05d1\u05dc \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05e7\u05d5\u05d3. \u05e6\u05d5\u05e8\u05ea \u05db\u05ea\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05e0\u05e7\u05e8\u05d0\u05ea Lambda Expression \u05e9\u05d1\u05e2\u05d6\u05e8\u05ea\u05d4 \u05db\u05d5\u05ea\u05d1\u05d9\u05dd delegate \u05d4\u05d7\u05dc \u05de C# 3.0. \u05d4\u05e6\u05d3 \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05e9\u05dc \u05d4\u05de\u05e9\u05d5\u05d5\u05d0\u05d4 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u2013 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc\u05ea \u05db\u05e4\u05e8\u05de\u05d8\u05e8 string (\u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d9\u05d0 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e9\u05dc string). \u05d5\u05d4\u05e6\u05d3 \u05d4\u05d9\u05de\u05e0\u05d9 \u05d4\u05d5\u05d0 \u05d4\u05e4\u05e2\u05d5\u05dc\u05d4 \u05e2\u05e6\u05de\u05d4. \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1&nbsp;Func \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 Func \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05d5\u05e8\u05db\u05d1 \u05d4\u05de\u05db\u05de\u05e1 (Encapsulate) delegate. \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc Func \u05de\u05ea\u05d0\u05e8\u05ea delegate \u05db\u05d0\u05e9\u05e8 \u05d4\u05d9\u05d0 \u05de\u05db\u05d9\u05dc\u05d4 \u05e9\u05e0\u05d9 \u05d7\u05dc\u05e7\u05d9\u05dd \u2013 \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df, \u05d0\u05d5 \u05d4\u05d7\u05dc\u05e7\u05d9\u05dd \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05dd, \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05e0\u05e9\u05dc\u05d7\u05d9\u05dd \u05d0\u05dc \u05d4delegate. \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e9\u05e0\u05d9 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8 \u05de\u05d4 delegate. \u05dc\u05de\u05e9\u05dc \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d9\u05d7\u05d9\u05d3 \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 int \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d5\u05db\u05df \u05d4\u05dc\u05d0\u05d4. \u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05dc\u05d5\u05d7 \u05e2\u05d3 \u05d7\u05de\u05e9 \u05e2\u05e9\u05e8\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd, \u05db\u05d0\u05e9\u05e8 \u05ea\u05de\u05d9\u05d3 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d4\u05d5\u05d0 \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e0\u05d5\u05db\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05d4\u05d3\u05e4\u05e1\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05de\u05db\u05e4\u05dc\u05d4 \u05e9\u05dc\u05d4\u05dd. \u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: Func&lt;int, int, int&gt; Multi = (x, y) =&gt; x*y; 2: Console.WriteLine(Multi(3,5)); \u05db\u05d0\u05de\u05d5\u05e8 \u2013 \u05d4 int \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05d0\u05dd \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Action \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. \u05d4\u05dd \u05d6\u05d4\u05d9\u05dd \u05dc\u05de\u05e2\u05d8 \u05e9\u05dc Action \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8. \u05d1\u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc LINQ, \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Func \u05e2\u05d5\u05d6\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4 delegate \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d4 \u05dc\u05e7\u05d1\u05dc Func \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input, Func&lt;T,bool&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14: } \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4 LINQ \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05d1\u05d0\u05d5\u05e4\u05df \u05d7\u05d5\u05e4\u05e9\u05d9 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dc \u05e4\u05d9\u05d4\u05dd \u05d0\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e1\u05e0\u05df \u05d5\u05d0\u05e3 \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05e0\u05d5\u05df \u05e2\u05dc \u05d2\u05d1\u05d9 \u05e1\u05d9\u05e0\u05d5\u05df \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: var result = employees.Where(e =&gt; e.StartsWith(&quot;A&quot;)) 2: .OrderByDescending(e =&gt; e.Length); 3:&nbsp; Linq&nbsp;\u05d5&nbsp;Entityframework \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 Entityframework, \u05e9\u05d4\u05d5\u05d0 \u05e2\u05e6\u05de\u05d5 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ, \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05d4\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 LINQ \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05e2\u05d1\u05d5\u05d3 \u05de\u05d5\u05dc \u05de\u05e1\u05d3 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05dc \u05db\u05da \u05d2\u05d3\u05d5\u05dc. \u05d0\u05d9\u05df \u05d4\u05e8\u05d1\u05d4 \u05d4\u05d2\u05d9\u05d5\u05df \u05d1\u05d4\u05d1\u05d0\u05ea \u05d4 Data Base \u05db\u05d5\u05dc\u05d5 \u05dc\u05d6\u05d9\u05db\u05e8\u05d5\u05df \u05e2\u05dc \u05de\u05e0\u05ea \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05ea\u05e9\u05d0\u05dc \u05d0\u05d5\u05ea\u05d5. \u05d5\u05dc\u05db\u05df Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05d3\u05e8\u05da \u05de\u05e2\u05d8 \u05e9\u05d5\u05e0\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ \u05d1\u05e6\u05d5\u05e8\u05d4 \u05db\u05d6\u05d5 \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05dc\u05d0 \u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d1\u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd, \u05d0\u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d4 \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e9\u05ea\u05dc\u05da \u05d0\u05d7\u05e8 \u05db\u05da \u05dc SQL. \u05d4\u05d3\u05d1\u05e8 \u05de\u05ea\u05e8\u05d7\u05e9 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d5\u05e9\u05d2 \u05e9\u05e0\u05e7\u05e8\u05d0 Expression \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. Expression \u05e2\u05d5\u05d8\u05e4\u05d9\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 Func \u05d5\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05dc\u05ea\u05e8\u05d2\u05dd Func \u05e9\u05e2\u05d8\u05d5\u05e3 \u05d1Expression \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea. \u05d5\u05db\u05d0\u05e9\u05e8 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05d4\u05d6\u05d5 \u05ea\u05d9\u05e9\u05dc\u05d7 \u05dcDatabase \u05d4\u05d9\u05d0 \u05ea\u05d7\u05d6\u05d9\u05e8 \u05e8\u05e7 \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05d1\u05d5\u05e7\u05e9\u05d9\u05dd \u05d5\u05dc\u05d0 \u05d0\u05ea \u05db\u05dc \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd. \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d4\u05d4\u05d1\u05e0\u05d4, \u05e0\u05e6\u05d9\u05d9\u05df \u05e9 Entityframework \u05dc\u05d0 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1 IEnumerable&lt;T&gt; \u05db\u05de\u05d5 \u05d1LINQ \u05e8\u05d2\u05d9\u05dc, \u05d0\u05dc\u05d0 \u05d1&nbsp;IQuetyable&lt;T&gt;. \u05e9\u05d0\u05de\u05e0\u05dd \u05d9\u05d5\u05e8\u05e9 \u05de IEnumerable \u05d0\u05dc\u05d0 \u05e9\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc Func \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc Expression. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Func \u05d4\u05d5\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dcdelegate \u05d5\u05d0\u05d6 \u05dc IL. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Expression \u05d4\u05d5\u05d0 \u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dc IL, \u05d0\u05dc\u05d0 \u05dc\u05de\u05d1\u05e0\u05d4 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d9\u05dd \u05d5\u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea. Entityframework \u05d5\u05d3\u05d5\u05de\u05d9\u05d5 \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05dc\u05e7\u05d7\u05ea \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4 \u05d5\u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05dd \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05de\u05d5\u05dc \u05d1\u05e1\u05d9\u05e1 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hernan-yehuda.net\/?p=161\" \/>\n<meta property=\"og:site_name\" content=\"Design for Living\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T04:42:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-13T04:42:25+00:00\" \/>\n<meta name=\"author\" content=\"Hernan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hernan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u05d3\u05e7\u05d5\u05ea\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161#article\",\"isPartOf\":{\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161\"},\"author\":{\"name\":\"Hernan\",\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64\"},\"headline\":\"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C\",\"datePublished\":\"2021-07-13T04:42:22+00:00\",\"dateModified\":\"2021-07-13T04:42:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64\"},\"keywords\":[\"delegate\",\"DEV\",\"Entityframework\",\"Expression\",\"Extension Methods\",\"Func\"],\"articleSection\":[\"#C\",\"SOLID\"],\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hernan-yehuda.net\/?p=161#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161\",\"url\":\"https:\/\/hernan-yehuda.net\/?p=161\",\"name\":\"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living\",\"isPartOf\":{\"@id\":\"https:\/\/hernan-yehuda.net\/#website\"},\"datePublished\":\"2021-07-13T04:42:22+00:00\",\"dateModified\":\"2021-07-13T04:42:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161#breadcrumb\"},\"inLanguage\":\"he-IL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hernan-yehuda.net\/?p=161\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hernan-yehuda.net\/?p=161#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u05d3\u05e3 \u05d4\u05d1\u05d9\u05ea\",\"item\":\"https:\/\/hernan-yehuda.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hernan-yehuda.net\/#website\",\"url\":\"https:\/\/hernan-yehuda.net\/\",\"name\":\"\u05d0\u05e8\u05e0\u05df \u05de\u05d9\u05d9\u05e1\u05dc\u05e1\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hernan-yehuda.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"he-IL\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64\",\"name\":\"Hernan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"he-IL\",\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fccf8cf4fc450b691c936a8d8435a7531aebd25301f198fe852050983a235aef?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fccf8cf4fc450b691c936a8d8435a7531aebd25301f198fe852050983a235aef?s=96&d=mm&r=g\",\"caption\":\"Hernan\"},\"logo\":{\"@id\":\"https:\/\/hernan-yehuda.net\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/hernan-yehuda.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hernan-yehuda.net\/?p=161","og_locale":"he_IL","og_type":"article","og_title":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living","og_description":"Linq \u05d4\u05d9\u05d0 \u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05e0\u05d5 \u05dc\u05ea\u05e9\u05d0\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea \u05e7\u05d5\u05d3 #C. \u05d4\u05db\u05d5\u05d5\u05e0\u05d4 \u05d1\u05de\u05d9\u05dc\u05d4 &#8216;\u05dc\u05ea\u05e9\u05d0\u05dc&#8217; \u05d4\u05d9\u05d0 \u05dc\u05db\u05da \u05e9\u05d9\u05e9 \u05d9\u05d5\u05ea\u05e8 \u05de\u05d7\u05de\u05d9\u05e9\u05d9\u05dd \u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8\u05d9\u05dd \u05d4\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05dc\u05de\u05d9\u05d9\u05df, \u05dc\u05e1\u05e0\u05df, \u05dc\u05d0\u05d7\u05d3 \u05d5\u05db\u05d5&#8217; \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd. \u05dc\u05de\u05e9\u05dc \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05e7\u05d1\u05dc \u05de\u05ea\u05d5\u05da \u05e8\u05e9\u05d9\u05de\u05ea \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05d4\u05dd \u05de\u05e0\u05d4\u05dc\u05d9 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea, \u05e0\u05e2\u05e9\u05d4 \u05d6\u05d0\u05ea \u05de\u05df \u05d4\u05e1\u05ea\u05dd \u05d1\u05e2\u05d6\u05e8\u05ea Linq. \u05d0\u05d6 \u05d0\u05d9\u05da Linq \u05e2\u05d5\u05d1\u05d3? \u05db\u05d9\u05d3\u05d5\u05e2 #C \u05d4\u05d9\u05d0 \u05e9\u05e4\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea, \u05d5\u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd (types) \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05e7\u05d1\u05d5\u05e2\u05d9\u05dd \u05d5\u05de\u05d5\u05d2\u05d3\u05e8\u05d9\u05dd. \u05d5\u05dc\u05db\u05df, \u05d0\u05dd \u05e0\u05e8\u05e6\u05d4 \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d1\u05e9\u05dd Where, \u05e9\u05ea\u05d7\u05d6\u05d9\u05e8 \u05dc\u05e0\u05d5 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05de\u05d8\u05d9\u05e4\u05d5\u05e1 Employee, \u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05d3\u05d0\u05d5\u05d2 \u05dc\u05da \u05e9\u05de\u05ea\u05d5\u05d3\u05ea Where \u05de\u05db\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e9\u05dc\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e4\u05ea\u05d9\u05e2 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05e8\u05d5\u05d0\u05d9\u05dd \u05e9Linq \u05ea\u05d5\u05de\u05db\u05ea \u05d1\u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05de\u05e9\u05ea\u05e0\u05d9\u05dd, \u05d0\u05e4\u05d9\u05dc\u05d5 \u05d0\u05dd \u05d4\u05e8\u05d2\u05e2 \u05d4\u05d2\u05d3\u05e8\u05e0\u05d5 \u05d0\u05d5\u05ea\u05dd. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d9\u05d5 \u05d9\u05d5\u05e6\u05e8\u05d9\u05dd \u05dc\u05e0\u05d5 Interface \u05dc\u05e6\u05d5\u05e8\u05da \u05d4\u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4, \u05d5\u05e9\u05d4Interface \u05d4\u05d6\u05d4 \u05de\u05d7\u05d6\u05d9\u05e7 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e0\u05d7\u05d5\u05e6\u05d5\u05ea, \u05e2\u05d3\u05d9\u05d9\u05df \u05d4\u05d9\u05ea\u05d4 \u05d1\u05e2\u05d9\u05d4 \u05d1\u05d2\u05dc\u05dc \u05e9\u05db\u05dc \u05de\u05d9 \u05e9\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4 Interface \u05d4\u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e6\u05e8\u05d9\u05da \u05dc\u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05d0\u05dc\u05d4. \u05d5\u05d0\u05dd \u05e4\u05ea\u05d0\u05d5\u05dd \u05d4\u05d9\u05d5 \u05de\u05d7\u05dc\u05d9\u05d8\u05d9\u05dd \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e2\u05d5\u05d3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea, \u05d6\u05d4 \u05d4\u05d9\u05d4 \u05e9\u05d5\u05d1\u05e8 \u05d0\u05ea \u05d4Interface. \u05d0\u05d6 \u05de\u05d4 \u05e2\u05d5\u05e9\u05d9\u05dd? \u05db\u05d0\u05e9\u05e8 \u05d7\u05d9\u05e4\u05e9\u05d5 \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d0\u05ea \u05d4\u05de\u05db\u05e0\u05d4 \u05d4\u05de\u05e9\u05d5\u05ea\u05e3 \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8 (\u05de\u05d1\u05d7\u05d9\u05e0\u05ea \u05d4\u05d9\u05e8\u05e8\u05db\u05d9\u05d9\u05ea \u05d9\u05e8\u05d5\u05e9\u05d4) \u05e9\u05dc \u05de\u05d1\u05e0\u05d9 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d4\u05dd \u05d1\u05d7\u05e8\u05d5 \u05d0\u05ea \u05d4 Interface\u00a0IEnumerable&lt;T>. IEnumerable&lt;t&gt; \u05d4\u05d5\u05d0 \u05d4\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1 \u05d4\u05de\u05ea\u05d0\u05d9\u05dd \u05d1\u05d9\u05d5\u05ea\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05d4\u05e7\u05e9\u05d5\u05e8\u05d5\u05ea \u05dc\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d5\u05d0 \u05de\u05db\u05d9\u05dc \u05de\u05ea\u05d5\u05d3\u05d4 \u05d0\u05d7\u05ea \u05d5\u05d9\u05d7\u05d9\u05d3\u05d4 \u2013&nbsp;GetEnumerator(). \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05d4\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd, \u05d0\u05d7\u05d3 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd. \u05db\u05de\u05d5 \u05dc\u05de\u05e9\u05dc \u05db\u05d0\u05e9\u05e8 \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05d1\u05dc\u05d5\u05dc\u05d0\u05ea ForEach. \u05d1\u05de\u05d9\u05e7\u05e8\u05d5\u05e1\u05d5\u05e4\u05d8 \u05d4\u05d7\u05dc\u05d9\u05d8\u05d5 \u05e9\u05dc\u05d0 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc IEnumerable&lt;T> \u05d0\u05dc\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d8\u05db\u05e0\u05d9\u05e7\u05d4 \u05e9\u05e0\u05e7\u05e8\u05d0\u05ea Extension Methods, \u05d5\u05e2\u05dc \u05db\u05da \u05e0\u05e8\u05d7\u05d9\u05d1 \u05de\u05e2\u05d8. Extension Methods Extension Methods \u05d4\u05d9\u05d0 \u05d3\u05e8\u05da \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e7\u05d9\u05d9\u05de\u05d5\u05ea \u05de\u05d1\u05dc\u05d9 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05df, \u05d5\u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05d6\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u2013 \u05dc\u05de\u05e8\u05d5\u05ea \u05e9\u05dc\u05de\u05e2\u05e9\u05d4 \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d0\u05d7\u05e8\u05ea. \u05d0\u05d9\u05da \u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3: \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05ea \u05d7\u05d9\u05e9\u05d5\u05d1 \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 DateTime. \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05e8\u05e9\u05ea \u05deDateTime \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d9\u05d5\u05e8\u05e9\u05ea \u05d0\u05ea \u05d4\u05ea\u05d5\u05e1\u05e4\u05ea \u05e9\u05dc\u05d9 \u05d1\u05d2\u05dc\u05dc \u05e9 DateTime \u05d6\u05d4 struct \u05d5\u05dc\u05db\u05df \u05d4\u05d5\u05d0 \u05de\u05d5\u05d2\u05d3\u05e8 \u05db sealed \u05d5\u05d0\u05d9 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05e8\u05e9\u05ea \u05de\u05de\u05e0\u05d5. \u05d0\u05dd \u05db\u05df, \u05d9\u05e8\u05d5\u05e9\u05d4 \u05d0\u05d9\u05e0\u05d4 \u05d1\u05d0\u05d4 \u05d1\u05d7\u05e9\u05d1\u05d5\u05df \u05db\u05d0\u05e9\u05e8 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05e9\u05dc DateTime. \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d0\u05d7\u05ea \u05d4\u05de\u05ea\u05d0\u05d9\u05de\u05d4 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05d9\u05dd \u05d3\u05d5\u05de\u05d9\u05dd \u05d4\u05d9\u05d0 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05ea\u05d1\u05e0\u05d9\u05ea \u05d4\u05e2\u05d9\u05e6\u05d5\u05d1\u00a0Decorator, \u05db\u05e4\u05d9 \u05e9\u05d4\u05d5\u05e1\u05d1\u05e8 \u05d1\u05e4\u05d5\u05e1\u05d8 \u05e7\u05d5\u05d3\u05dd. \u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05e9\u05d0\u05d5\u05ea\u05d4 \u05e0\u05d3\u05d2\u05d9\u05dd \u05d4\u05d9\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Methods. \u05e0\u05e0\u05d9\u05d7 \u05e9\u05d9\u05e9 \u05dc\u05d9 \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc DateTime \u05de\u05d0\u05d5\u05ea\u05d7\u05dc \u05dc\u05ea\u05d0\u05e8\u05d9\u05da \u05db\u05dc\u05e9\u05d4\u05d5 \u05d5\u05d0\u05e0\u05d9 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d3\u05e2\u05ea \u05db\u05de\u05d4 \u05d9\u05de\u05d9\u05dd \u05e0\u05e9\u05d0\u05e8\u05d5 \u05e2\u05d3 \u05dc\u05e1\u05d5\u05e3 \u05d4\u05d7\u05d5\u05d3\u05e9 \u05d4\u05d6\u05d4. \u05d0\u05e0\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05d7\u05e9\u05d1 \u05d0\u05ea \u05d6\u05d4 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTime.DaysInMonth(date.Year, date.Month) - date.Day; \u05d6\u05d4 \u05d1\u05e1\u05d3\u05e8 \u05d5\u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3, \u05d0\u05d1\u05dc \u05d0\u05e0\u05d9 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05db\u05ea\u05d5\u05d1 \u05d0\u05ea \u05db\u05dc \u05d4\u05e7\u05d5\u05d3 \u05d4\u05d6\u05d4 \u05d1\u05db\u05dc \u05e4\u05e2\u05dd \u05e9\u05d0\u05e0\u05d9 \u05e6\u05e8\u05d9\u05da \u05d0\u05ea \u05d4\u05d7\u05d9\u05e9\u05d5\u05d1 \u05dc\u05d0\u05d5\u05e8\u05da \u05d4\u05e7\u05d5\u05d3. \u05d0\u05de\u05e0\u05dd \u05d4\u05d9\u05d9\u05ea\u05d9 \u05d9\u05db\u05d5\u05dc \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e2\u05dd \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05d0\u05d1\u05dc \u05d6\u05d4 \u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e0\u05d5\u05d7 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9. \u05d4\u05d9\u05d9\u05ea\u05d9 \u05de\u05e2\u05d3\u05d9\u05e3 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05d7\u05e9\u05d1\u05ea \u05d0\u05ea \u05d6\u05d4 \u05db\u05d7\u05dc\u05e7 \u05d0\u05d9\u05e0\u05d8\u05d2\u05e8\u05dc\u05d9 \u05de DateTime. \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: public static class DateTimeExtensions 2: { 3: public static int DaysToEndOfMonth(DateTime date) 4: { 5: return DateTime.DaysInMonth(date.Year, date.Month) - date.Day; 6: } 7: } \u05d3\u05d5\u05d2\u05de\u05d0 \u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d7\u05dc\u05e7\u05ea \u05e2\u05d6\u05e8: 1: DateTime date = new DateTime(2014, 8, 8); 2: int daysUntilEndOfMonth = DateTimeExtensions.DaysToEndOfMonth(date); \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05d4\u05d6\u05d5, \u05de\u05dc\u05d1\u05d3 \u05d0\u05d9 \u05e0\u05d5\u05d7\u05d5\u05ea \u05d4\u05db\u05ea\u05d9\u05d1\u05d4 \u05d9\u05e9 \u05d2\u05dd \u05e7\u05d5\u05e9\u05d9 \u05dc\u05e7\u05e8\u05d5\u05d0 \u05d0\u05ea \u05d4\u05e7\u05d5\u05d3 \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05dc\u05d0 \u05db\u05d5\u05dc\u05dd \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05de\u05d4\u05d9 \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d7\u05d3\u05e9\u05d4 \u05d0\u05d5\u05ea\u05d4 \u05d4\u05d2\u05d3\u05e8\u05ea\u05d9. \u05d5\u05e2\u05db\u05e9\u05d9\u05d5 \u05dc\u05e7\u05e1\u05dd\u2026. \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d5\u05e1\u05e4\u05ea \u05d4\u05de\u05d9\u05dc\u05d4&nbsp;this&nbsp;\u05dc\u05e4\u05e0\u05d9 \u05e9\u05dd \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 DateTime \u05d1\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05e9\u05dc\u05d9, \u05d0\u05e0\u05d9 \u05d2\u05d5\u05e8\u05dd \u05dc\u05db\u05da \u05e9\u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05d0\u05d9\u05dc\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d6\u05d5 \u05e0\u05d5\u05e1\u05e4\u05ea \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1 DateTime \u05e2\u05e6\u05de\u05d5. \u05db\u05e2\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05ea\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static int DaysToEndOfMonth(this DateTime date) 2: { 3: return DateTime.DaysInMonth(date.Year, date.Month) - date.Day; 4: } \u05d5\u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05e4\u05e9\u05d5\u05d8 \u05db\u05da: 1: int daysUntilEndOfMonth = date.DaysToEndOfMonth(); \u05d6\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05e2\u05d5\u05de\u05d3\u05ea \u05d1\u05e4\u05e0\u05d9 \u05e2\u05e6\u05de\u05d4 \u05d0\u05da \u05d1\u05e2\u05d6\u05e8\u05ea \u05d8\u05e8\u05d9\u05e7 \u05e9\u05dc \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d4\u05d9\u05d0 \u05e0\u05e8\u05d0\u05d9\u05ea \u05db\u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d0 \u05de\u05d5\u05d1\u05e0\u05d9\u05ea \u05d1\u05ea\u05d5\u05da \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4, \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Extension Method, \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05d5\u05d1\u05e0\u05d5\u05ea \u05d1\u05e9\u05e4\u05d4, \u05dc\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d0\u05d9\u05e0\u05d8\u05e8\u05e4\u05d9\u05d9\u05e1\u05d9\u05dd. \u05d1\u05d7\u05d6\u05e8\u05d4 \u05dcLINQ \u05d4\u05d6\u05db\u05e8\u05e0\u05d5 \u05d0\u05ea IEnumareble&lt;T&gt; \u05db\u05de\u05d5\u05e2\u05de\u05d3 \u05e4\u05d5\u05d8\u05e0\u05e6\u05d9\u05d0\u05dc\u05d9 \u05dc\u05d4\u05d7\u05d6\u05e7\u05ea \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea, \u05d0\u05d1\u05dc \u05d0\u05de\u05e8\u05e0\u05d5 \u05e9\u05dc\u05d0 \u05e8\u05e6\u05d5 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05d5\u05ea\u05d4, \u05d5\u05dc\u05db\u05df \u05d4\u05d3\u05e8\u05da \u05d4\u05e0\u05db\u05d5\u05e0\u05d4 \u05d4\u05d9\u05d0 \u05dc\u05d9\u05e6\u05e8 \u05de\u05d7\u05dc\u05e7\u05d4 \u05d9\u05d9\u05e2\u05d5\u05d3\u05d9\u05ea \u05dc\u05e2\u05e0\u05d9\u05d9\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Extension Method\u05dc IEnumareble&lt;T&gt;. \u05dc\u05de\u05e9\u05dc \u05d4\u05d9\u05d4 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d9\u05e6\u05e8 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e7\u05d1\u05dc\u05ea \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 IEnumerable&lt;string> \u05d5\u05de\u05e1\u05e0\u05e0\u05ea \u05e8\u05e7 \u05d0\u05ea \u05d0\u05dc\u05d5 \u05d1\u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05de\u05ea\u05d7\u05d9\u05dc\u05d9\u05dd \u05d1\u05d0\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05ea, \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;string&gt; StringThatStartWith 4: (this IEnumerable&lt;string&gt; input,string start ) 5: { 6: foreach (var s in input) 7: { 8: if (s.StartsWith(start)) 9: { 10: yield return s; 11: } 12: } 13: } 14: } \u05d5\u05d0\u05d6 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d6\u05d4 \u05dc\u05de\u05e9\u05dc \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: IEnumerable&lt;string&gt; employees = new[] {\"Avi\", \"Danny\", \"Moshe\"}; 2: var startWithA = employees.StringThatStartWith(\"A\"); \u05d5\u05d6\u05d4 \u05db\u05de\u05d5\u05d1\u05df \u05d1\u05ea\u05e0\u05d0\u05d9 \u05e9\u05d9\u05e9 \u05dc\u05d9 using \u05dc namespace \u05e9\u05d1\u05d5 \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d4extensions \u05e9\u05dc\u05d9. \u05d1\u05d3\u05d9\u05d5\u05e7 \u05d1\u05d3\u05e8\u05da \u05d4\u05d6\u05d5 LINQ \u05e2\u05d5\u05d1\u05d3. \u05de\u05d5\u05e1\u05d9\u05e4\u05d9\u05dd \u05d0\u05ea \u05d4namespace system.Linq \u05d5\u05d1\u05db\u05da \u05de\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5\u05ea \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05e8\u05d1\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05da \u05e9\u05dc\u05e0\u05d5. \u05e2\u05d3\u05d9\u05d9\u05df \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05de\u05ea\u05d5\u05d3\u05ea where \u05dc\u05de\u05e9\u05dc, \u05d9\u05d5\u05d3\u05e2\u05ea \u05dc\u05e1\u05e0\u05df \u05dc\u05e4\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05d9\u05dd \u05e9\u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05e8\u05e7 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc\u05d9? \u05d0\u05d9\u05da \u05e2\u05d5\u05e9\u05d9\u05dd \u05e9\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d2\u05e0\u05e8\u05d9 \u05e2\u05d3 \u05db\u05d3\u05d9 \u05db\u05da? \u05e0\u05d7\u05d6\u05d5\u05e8 \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5: \u05d1\u05d3\u05d5\u05d2\u05de\u05d0 \u05e9\u05dc\u05e0\u05d5 \u05d9\u05e9 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05ea\u05d5\u05da \u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 \u05d0\u05e0\u05d9 \u05de\u05e2\u05d5\u05e0\u05d9\u05d9\u05df \u05e9\u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05d9\u05d2\u05d3\u05d9\u05e8 \u05dc\u05d9 \u05de\u05d4 \u05dc\u05e1\u05e0\u05df \u05d5\u05e2\u05dc \u05e4\u05d9 \u05d0\u05d9\u05d6\u05d4 \u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df. \u05d0\u05dd \u05db\u05da \u05e0\u05e9\u05e0\u05d4 \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05dc\u05de\u05e9\u05d4\u05d5 \u05d2\u05e0\u05e8\u05d9 \u05d9\u05d5\u05ea\u05e8 (\u05d1\u05e2\u05d6\u05e8\u05ea T) \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d0\u05ea \u05d4\u05e7\u05e8\u05d9\u05d8\u05e8\u05d9\u05d5\u05df \u05dc\u05e1\u05d9\u05e0\u05d5\u05df (\u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05d1\u05de\u05e7\u05e8\u05d4 \u05e9\u05dc\u05e0\u05d5) \u05e0\u05d2\u05d3\u05d9\u05e8 delegate \u05e9\u05d0\u05e3 \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc T \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 (\u05d5\u05d6\u05d4 \u05d1\u05e9\u05d1\u05d9\u05dc \u05dc\u05e4\u05dc\u05d8\u05e8 \u2013 \u05db\u05dc\u05d5\u05de\u05e8 \u05dc\u05d3\u05e2\u05ea \u05d4\u05d0\u05dd item \u05db\u05dc\u05e9\u05d4\u05d5 \u05e7\u05d9\u05d9\u05dd \u05d1\u05e8\u05e9\u05d9\u05de\u05d4). \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input,FilterDelegate&lt;T&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14:&nbsp; 15: public delegate bool FilterDelegate&lt;T&gt;(T item); 16: } \u05d1\u05e9\u05dc\u05d1 \u05d4\u05d6\u05d4 \u05e0\u05d5\u05db\u05dc \u05dc\u05de\u05e9\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05dc\u05e0\u05d5 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e9\u05de\u05e1\u05e0\u05e0\u05ea \u05de\u05d9\u05dc\u05d9\u05dd \u05dc\u05e4\u05d9 \u05d0\u05d5\u05ea \u05d4\u05d4\u05ea\u05d7\u05dc\u05d4 \u05e9\u05dc\u05d4\u05df \u05d5\u05d0\u05ea \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d6\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e9\u05d9\u05e6\u05e8\u05e0\u05d5. \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4: 1: static void Main(string[] args) 2: { 3: IEnumerable&lt;string&gt; employees = new[] { \"Avi\", \"Danny\", \"Moshe\" }; 4: var startWithA = employees.Filter(StringThatStartWithA); 5: } 6:&nbsp; 7: private static bool StringThatStartWithA(string s) 8: { 9: return s.StartsWith(\"A\"); 10: } \u05d0\u05de\u05e0\u05dd, \u05e9\u05d9\u05d8\u05d4 \u05d6\u05d5 \u05dc\u05d0 \u05e0\u05d5\u05d7\u05d4 \u05d1\u05db\u05dc\u05dc \u05d1\u05d2\u05dc\u05dc \u05e9\u05e0\u05e6\u05d8\u05e8\u05da \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e2\u05dc \u05db\u05dc \u05d0\u05d5\u05ea \u05d5\u05d0\u05d5\u05ea \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05e2\u05dc\u05d5\u05dc\u05d9\u05dd \u05dc\u05d1\u05d3\u05d5\u05e7. \u05d0\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d6\u05d5 \u05e0\u05e4\u05ea\u05d5\u05e8 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 anonymous delegate. \u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e9\u05dc\u05d5\u05d7 \u05de\u05ea\u05d5\u05d3\u05d4 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05ea \u05dc\u05e4\u05d9\u05dc\u05d8\u05e8 \u05e0\u05db\u05ea\u05d5\u05d1 \u05db\u05da: 1: var startWithA = employees.Filter(delegate(string item) 2: { 3: return item.StartsWith(\"A\"); 4: }); 5:&nbsp; \u05d6\u05d4 \u05d7\u05d5\u05e1\u05da \u05dc\u05e0\u05d5 \u05dc\u05db\u05ea\u05d5\u05d1 \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea, \u05d0\u05da \u05e2\u05d3\u05d9\u05d9\u05df \u05d6\u05d4 \u05dc\u05d0 \u05d2\u05e0\u05e8\u05d9. \u05dc\u05e4\u05e0\u05d9 \u05e9\u05e0\u05d4\u05e4\u05d5\u05da \u05d0\u05ea \u05d6\u05d4 \u05dc\u05d9\u05d5\u05ea\u05e8 \u05d2\u05e0\u05e8\u05d9, \u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05db\u05de\u05d4 \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05e9\u05dc \u05d4\u05e9\u05e4\u05d4 \u2013 \u05d9\u05e9 \u05db\u05de\u05d4 \u05d3\u05d1\u05e8\u05d9\u05dd \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05de\u05e8\u05d0\u05e9 \u05d5\u05d6\u05d4 \u05e9 Filter \u05de\u05e7\u05d1\u05dc delegate \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4\u05de\u05d9\u05dc\u05d4 delegate. \u05db\u05de\u05d5 \u05db\u05df \u05d9\u05d3\u05d5\u05e2 \u05e9\u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05d5\u05d0 \u05de\u05e1\u05d5\u05d2 string \u05d1\u05d2\u05dc\u05dc \u05e9\u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05e2\u05e8\u05da \u05e9\u05dc string, \u05d5\u05dc\u05db\u05df \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 string. \u05d2\u05dd \u05de\u05d4\u05de\u05d9\u05dc\u05d4 return \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8, \u05d5\u05db\u05df \u05de\u05d4\u05e1\u05d5\u05d2\u05e8\u05d9\u05d9\u05dd \u05d4\u05de\u05e1\u05d5\u05dc\u05e1\u05dc\u05d5\u05ea. \u05e0\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea \u05d4\u05d0\u05d5\u05e4\u05e8\u05d8\u05d5\u05e8 =&gt; (goes to) \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05dc\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e9\u05d6\u05d4 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05e9\u05dc\u05e0\u05d5. \u05db\u05e2\u05ea \u05d4\u05e7\u05d5\u05d3 \u05e0\u05e8\u05d0\u05d4 \u05db\u05da: 1: var startWithA = employees.Filter((item)=&gt;item.StartsWith(\"A\")); \u05e0\u05e8\u05d0\u05d4 \u05e7\u05e6\u05ea \u05de\u05d5\u05db\u05e8? \u05e1\u05d9\u05de\u05df \u05e9\u05d0\u05e0\u05d7\u05e0\u05d5 \u05de\u05ea\u05e7\u05e8\u05d1\u05d9\u05dd \u05dc\u05d9\u05e2\u05d3\u2026 \u05e0\u05e9\u05d0\u05e8\u05e0\u05d5 \u05e2\u05dd \u05d0\u05d5\u05ea\u05d5 delegate \u05d0\u05d1\u05dc \u05e2\u05dd \u05e4\u05d7\u05d5\u05ea \u05e7\u05d5\u05d3. \u05e6\u05d5\u05e8\u05ea \u05db\u05ea\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05e0\u05e7\u05e8\u05d0\u05ea Lambda Expression \u05e9\u05d1\u05e2\u05d6\u05e8\u05ea\u05d4 \u05db\u05d5\u05ea\u05d1\u05d9\u05dd delegate \u05d4\u05d7\u05dc \u05de C# 3.0. \u05d4\u05e6\u05d3 \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05e9\u05dc \u05d4\u05de\u05e9\u05d5\u05d5\u05d0\u05d4 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05ea\u05d5\u05d3\u05d4 \u2013 \u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc\u05ea \u05db\u05e4\u05e8\u05de\u05d8\u05e8 string (\u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d9\u05d0 \u05d4\u05d5\u05e4\u05e2\u05dc\u05d4 \u05e2\u05dc \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e9\u05dc string). \u05d5\u05d4\u05e6\u05d3 \u05d4\u05d9\u05de\u05e0\u05d9 \u05d4\u05d5\u05d0 \u05d4\u05e4\u05e2\u05d5\u05dc\u05d4 \u05e2\u05e6\u05de\u05d4. \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1&nbsp;Func \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 Func \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05d5\u05e8\u05db\u05d1 \u05d4\u05de\u05db\u05de\u05e1 (Encapsulate) delegate. \u05d4\u05d7\u05ea\u05d9\u05de\u05d4 \u05e9\u05dc Func \u05de\u05ea\u05d0\u05e8\u05ea delegate \u05db\u05d0\u05e9\u05e8 \u05d4\u05d9\u05d0 \u05de\u05db\u05d9\u05dc\u05d4 \u05e9\u05e0\u05d9 \u05d7\u05dc\u05e7\u05d9\u05dd \u2013 \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df, \u05d0\u05d5 \u05d4\u05d7\u05dc\u05e7\u05d9\u05dd \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d9\u05dd, \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05e0\u05e9\u05dc\u05d7\u05d9\u05dd \u05d0\u05dc \u05d4delegate. \u05d4\u05d7\u05dc\u05e7 \u05d4\u05e9\u05e0\u05d9 \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8 \u05de\u05d4 delegate. \u05dc\u05de\u05e9\u05dc \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d9\u05d7\u05d9\u05d3 \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d4\u05d1\u05d9\u05d8\u05d5\u05d9 Func&lt;int, int, bool&gt; \u05de\u05ea\u05d0\u05e8 delegate \u05e9\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 int \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d5\u05de\u05d7\u05d6\u05d9\u05e8 bool. \u05d5\u05db\u05df \u05d4\u05dc\u05d0\u05d4. \u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05dc\u05d5\u05d7 \u05e2\u05d3 \u05d7\u05de\u05e9 \u05e2\u05e9\u05e8\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd, \u05db\u05d0\u05e9\u05e8 \u05ea\u05de\u05d9\u05d3 \u05d4\u05de\u05e9\u05ea\u05e0\u05d4 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d4\u05d5\u05d0 \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 \u05e0\u05d5\u05db\u05dc \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d4 \u05d4\u05d3\u05e4\u05e1\u05d4 \u05d4\u05de\u05e7\u05d1\u05dc \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 int \u05d5\u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05de\u05db\u05e4\u05dc\u05d4 \u05e9\u05dc\u05d4\u05dd. \u05d6\u05d4 \u05d9\u05e8\u05d0\u05d4 \u05db\u05da: 1: Func&lt;int, int, int&gt; Multi = (x, y) =&gt; x*y; 2: Console.WriteLine(Multi(3,5)); \u05db\u05d0\u05de\u05d5\u05e8 \u2013 \u05d4 int \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05de\u05e1\u05de\u05df \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05de\u05d5\u05d7\u05d6\u05e8. \u05d0\u05dd \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1 Action \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. \u05d4\u05dd \u05d6\u05d4\u05d9\u05dd \u05dc\u05de\u05e2\u05d8 \u05e9\u05dc Action \u05d0\u05d9\u05df \u05e2\u05e8\u05da \u05de\u05d5\u05d7\u05d6\u05e8. \u05d1\u05d4\u05e7\u05e9\u05e8 \u05e9\u05dc LINQ, \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1 Func \u05e2\u05d5\u05d6\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05d4\u05d9\u05e4\u05d8\u05e8 \u05de\u05d4 delegate \u05e9\u05dc\u05e0\u05d5 \u05d5\u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d4 \u05dc\u05e7\u05d1\u05dc Func \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: public static class FilterExtensions 2: { 3: public static IEnumerable&lt;T&gt; Filter&lt;T&gt; 4: (this IEnumerable&lt;T&gt; input, Func&lt;T,bool&gt; issue) 5: { 6: foreach (var item in input) 7: { 8: if (issue(item)) 9: { 10: yield return item; 11: } 12: } 13: } 14: } \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d6\u05d4 LINQ \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05e9\u05dc\u05d5\u05d7 \u05d1\u05d0\u05d5\u05e4\u05df \u05d7\u05d5\u05e4\u05e9\u05d9 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df \u05d0\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dc \u05e4\u05d9\u05d4\u05dd \u05d0\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05e1\u05e0\u05df \u05d5\u05d0\u05e3 \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e1\u05d9\u05e0\u05d5\u05df \u05e2\u05dc \u05d2\u05d1\u05d9 \u05e1\u05d9\u05e0\u05d5\u05df \u05d1\u05d0\u05d5\u05e4\u05df \u05d4\u05d1\u05d0: 1: var result = employees.Where(e =&gt; e.StartsWith(\"A\")) 2: .OrderByDescending(e =&gt; e.Length); 3:&nbsp; Linq&nbsp;\u05d5&nbsp;Entityframework \u05db\u05d0\u05e9\u05e8 \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 Entityframework, \u05e9\u05d4\u05d5\u05d0 \u05e2\u05e6\u05de\u05d5 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ, \u05e0\u05e9\u05d0\u05dc\u05ea \u05d4\u05e9\u05d0\u05dc\u05d4 \u05d0\u05d9\u05da \u05d4\u05dd \u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d1 LINQ \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05e2\u05d1\u05d5\u05d3 \u05de\u05d5\u05dc \u05de\u05e1\u05d3 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05dc \u05db\u05da \u05d2\u05d3\u05d5\u05dc. \u05d0\u05d9\u05df \u05d4\u05e8\u05d1\u05d4 \u05d4\u05d2\u05d9\u05d5\u05df \u05d1\u05d4\u05d1\u05d0\u05ea \u05d4 Data Base \u05db\u05d5\u05dc\u05d5 \u05dc\u05d6\u05d9\u05db\u05e8\u05d5\u05df \u05e2\u05dc \u05de\u05e0\u05ea \u05e9\u05e0\u05d5\u05db\u05dc \u05dc\u05ea\u05e9\u05d0\u05dc \u05d0\u05d5\u05ea\u05d5. \u05d5\u05dc\u05db\u05df Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05d3\u05e8\u05da \u05de\u05e2\u05d8 \u05e9\u05d5\u05e0\u05d4. \u05dc\u05de\u05e2\u05e9\u05d4 Entityframework \u05de\u05e9\u05ea\u05de\u05e9 \u05d1LINQ \u05d1\u05e6\u05d5\u05e8\u05d4 \u05db\u05d6\u05d5 \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05dc\u05d0 \u05de\u05de\u05de\u05e9 \u05d0\u05ea \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05d1\u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd, \u05d0\u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d4 \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea \u05e9\u05ea\u05dc\u05da \u05d0\u05d7\u05e8 \u05db\u05da \u05dc SQL. \u05d4\u05d3\u05d1\u05e8 \u05de\u05ea\u05e8\u05d7\u05e9 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05de\u05d5\u05e9\u05d2 \u05e9\u05e0\u05e7\u05e8\u05d0 Expression \u05d1\u05de\u05e7\u05d5\u05dd \u05d1 Func. Expression \u05e2\u05d5\u05d8\u05e4\u05d9\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 Func \u05d5\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d9\u05d5\u05d3\u05e2 \u05dc\u05ea\u05e8\u05d2\u05dd Func \u05e9\u05e2\u05d8\u05d5\u05e3 \u05d1Expression \u05dc\u05e9\u05e4\u05ea \u05e9\u05d0\u05d9\u05dc\u05ea\u05d5\u05ea. \u05d5\u05db\u05d0\u05e9\u05e8 \u05d4\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05d4\u05d6\u05d5 \u05ea\u05d9\u05e9\u05dc\u05d7 \u05dcDatabase \u05d4\u05d9\u05d0 \u05ea\u05d7\u05d6\u05d9\u05e8 \u05e8\u05e7 \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05d1\u05d5\u05e7\u05e9\u05d9\u05dd \u05d5\u05dc\u05d0 \u05d0\u05ea \u05db\u05dc \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05db\u05d5\u05dc\u05dd. \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d4\u05d4\u05d1\u05e0\u05d4, \u05e0\u05e6\u05d9\u05d9\u05df \u05e9 Entityframework \u05dc\u05d0 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1 IEnumerable&lt;T&gt; \u05db\u05de\u05d5 \u05d1LINQ \u05e8\u05d2\u05d9\u05dc, \u05d0\u05dc\u05d0 \u05d1&nbsp;IQuetyable&lt;T&gt;. \u05e9\u05d0\u05de\u05e0\u05dd \u05d9\u05d5\u05e8\u05e9 \u05de IEnumerable \u05d0\u05dc\u05d0 \u05e9\u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05e7\u05d1\u05dc Func \u05d4\u05d5\u05d0 \u05de\u05e7\u05d1\u05dc Expression. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Func \u05d4\u05d5\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dcdelegate \u05d5\u05d0\u05d6 \u05dc IL. \u05db\u05d0\u05e9\u05e8 \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05e8\u05d5\u05d0\u05d4 Expression \u05d4\u05d5\u05d0 \u05dc\u05d0 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05d5\u05ea\u05d5 \u05dc IL, \u05d0\u05dc\u05d0 \u05dc\u05de\u05d1\u05e0\u05d4 \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d0\u05d5\u05d3\u05d5\u05ea \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d9\u05dd \u05d5\u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d4\u05de\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea. Entityframework \u05d5\u05d3\u05d5\u05de\u05d9\u05d5 \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd \u05dc\u05e7\u05d7\u05ea \u05d0\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4 \u05d5\u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05dd \u05dc\u05e9\u05d0\u05d9\u05dc\u05ea\u05d0 \u05de\u05d5\u05dc \u05d1\u05e1\u05d9\u05e1 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd.","og_url":"https:\/\/hernan-yehuda.net\/?p=161","og_site_name":"Design for Living","article_published_time":"2021-07-13T04:42:22+00:00","article_modified_time":"2021-07-13T04:42:25+00:00","author":"Hernan","twitter_card":"summary_large_image","twitter_misc":{"\u05e0\u05db\u05ea\u05d1 \u05e2\u05dc \u05d9\u05d3":"Hernan","\u05d6\u05de\u05df \u05e7\u05e8\u05d9\u05d0\u05d4 \u05de\u05d5\u05e2\u05e8\u05da":"7 \u05d3\u05e7\u05d5\u05ea"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hernan-yehuda.net\/?p=161#article","isPartOf":{"@id":"https:\/\/hernan-yehuda.net\/?p=161"},"author":{"name":"Hernan","@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64"},"headline":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C","datePublished":"2021-07-13T04:42:22+00:00","dateModified":"2021-07-13T04:42:25+00:00","mainEntityOfPage":{"@id":"https:\/\/hernan-yehuda.net\/?p=161"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64"},"keywords":["delegate","DEV","Entityframework","Expression","Extension Methods","Func"],"articleSection":["#C","SOLID"],"inLanguage":"he-IL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hernan-yehuda.net\/?p=161#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hernan-yehuda.net\/?p=161","url":"https:\/\/hernan-yehuda.net\/?p=161","name":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C - Design for Living","isPartOf":{"@id":"https:\/\/hernan-yehuda.net\/#website"},"datePublished":"2021-07-13T04:42:22+00:00","dateModified":"2021-07-13T04:42:25+00:00","breadcrumb":{"@id":"https:\/\/hernan-yehuda.net\/?p=161#breadcrumb"},"inLanguage":"he-IL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hernan-yehuda.net\/?p=161"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hernan-yehuda.net\/?p=161#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u05d3\u05e3 \u05d4\u05d1\u05d9\u05ea","item":"https:\/\/hernan-yehuda.net\/"},{"@type":"ListItem","position":2,"name":"\u05d0\u05d9\u05da \u05e2\u05d5\u05d1\u05d3 Linq \u05d1- #C"}]},{"@type":"WebSite","@id":"https:\/\/hernan-yehuda.net\/#website","url":"https:\/\/hernan-yehuda.net\/","name":"\u05d0\u05e8\u05e0\u05df \u05de\u05d9\u05d9\u05e1\u05dc\u05e1","description":"","publisher":{"@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hernan-yehuda.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"he-IL"},{"@type":["Person","Organization"],"@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/0f06727fd57f92683c3ad425a9ecaf64","name":"Hernan","image":{"@type":"ImageObject","inLanguage":"he-IL","@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fccf8cf4fc450b691c936a8d8435a7531aebd25301f198fe852050983a235aef?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fccf8cf4fc450b691c936a8d8435a7531aebd25301f198fe852050983a235aef?s=96&d=mm&r=g","caption":"Hernan"},"logo":{"@id":"https:\/\/hernan-yehuda.net\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/hernan-yehuda.net"]}]}},"_links":{"self":[{"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":5,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/166"}],"wp:attachment":[{"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hernan-yehuda.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}