<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : C# Linq ile If  include</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : C# Linq ile If  include</description>
  <pubDate>Fri, 01 May 2026 07:11:01 +0000</pubDate>
  <lastBuildDate>Sun, 19 Apr 2015 10:24:27 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2786</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>C# Linq ile If  include : C# Linq ile If include  using...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2786&amp;PID=5627#5627</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 2786<br /><strong>Gönderim Zamanı:</strong> 19.Nisan.2015 Saat 10:24<br /><br /><b>C# Linq ile If &nbsp;include</b><div><br></div><div><div>using System;</div><div>using System.Linq;</div><div><br></div><div>namespace ConsoleApplication9</div><div>{</div><div>&nbsp; &nbsp; static class Program</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //fonksiyondaki this, bu fonsiyonun sorce kısmının tüm degiskenlerden sonra kullanımını sağlamak</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //1. kullanımda olduğu gibi.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //eger this ibaresi kaldırılırsa, sadece normal bir fonksiyon gibi kullanılabilir (2.kullanım)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //this olduğunda her iki yöntemde kullanıma açıktır.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //bu türe extension method denilmekte.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; static Boolean isIn&lt;T&gt;(this T source, params T&#091;&#093; values)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return values.Contains(source);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; static void Main(string&#091;&#093; args)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string myStr = "str3";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool found = myStr.isIn("str1", "str2", "str3", "str4"); &nbsp; <b>&nbsp;//1.kullanim</b></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool snc = isIn&lt;string&gt;("str3", "str1", "str2", "str3", "str4"); <b>//2.kullanim</b></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.ReadLine();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; }</div><div>}</div></div>]]>
   </description>
   <pubDate>Sun, 19 Apr 2015 10:24:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2786&amp;PID=5627#5627</guid>
  </item> 
 </channel>
</rss>