<?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# başlangıç seviye,static konusu</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : c# başlangıç seviye,static konusu</description>
  <pubDate>Wed, 22 Apr 2026 07:53:08 +0000</pubDate>
  <lastBuildDate>Wed, 30 Mar 2011 15:45:31 +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=2049</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# başlangıç seviye,static konusu : fatih kargon geriye geldi, verdi&#287;in...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4545#4545</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> 2049<br /><strong>Gönderim Zamanı:</strong> 30.Mart.2011 Saat 15:45<br /><br />fatih kargon geriye geldi, verdiğin adres bulunamamış.<DIV>&nbsp;</DIV><DIV>return bulunduğu satırdan sonraki blokları çalışmaz kılıyor ! haliyle en sondaki fout.close'a hata sonrası gelinemeyeceği için (return; den dolayı) istisna fırlatmıyor.</DIV>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 15:45:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4545#4545</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : Murat Hocam,senin ded&#287;in gibi...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4537#4537</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3945" rel="nofollow">fatdem</a><br /><strong>Konu:</strong> 2049<br /><strong>Gönderim Zamanı:</strong> 26.Mart.2011 Saat 23:32<br /><br />Murat Hocam,<div>senin dedğin gibi yaptım da. catch bloğu içindeki return u kaldırırsam veriyor "fout nesnesi tanımlanmamış yerel değişken" hatasını.</div><div>yani catch te return kullanmazsam ve senin dediğin gibi de "ya dosya yaratılmazsa" catch çalışıp istisna vereceği ve catch sonunda return olmadğı için, catch bloğundan sonra nesneyi fout.close(); ile kapamayamı çalışıyor?</div><div><br></div><div>istisnaları çalışırken anladğım catch ten sonra program hata msj verip sonlanıyor, o yüzden kafam karıştı fout.close(); ile catch bloğundaki return un alakası ne die.</div>]]>
   </description>
   <pubDate>Sat, 26 Mar 2011 23:32:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4537#4537</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : tertip merhaba. sen return; ibaresini...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4528#4528</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> 2049<br /><strong>Gönderim Zamanı:</strong> 26.Mart.2011 Saat 10:57<br /><br /><DIV>tertip merhaba. sen return; ibaresini kaldırdığında ve direkt fout.Close&nbsp; yaptığında şöyle bir duum oluyor.</DIV><DIV>&nbsp;</DIV><DIV>ya fout nesnesi try bloğu arasında yaratılamazsa? sen yaratılmamış bir nesneyi nasıl Close yapacaksın abi. bu blokta bu durumda istisna fırlatacak. return; ile işlemi sonlandırdığında o bloğa gitmeyeceğinden sorun olmuyor. ama try bloğundan return'u kaldırırsan kodu aşağıdaki gibi dğeiştir abi.</DIV><DIV>&nbsp;</DIV><DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string rpath = @"D:\test.txt";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileStream fout = null;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fout = new FileStream(rpath, FileMode.OpenOrCreate);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (IOException exc)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine(exc.Message + "okunamadı");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.ReadKey();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fout.WriteByte((byte)'p');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch (IOException exc) { Console.WriteLine(exc.Message + "hata"); }</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (fout != null)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fout.Close();</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.ReadKey();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>*** bu arada kargonu dün teslim ettim.</FONT></FONT></DIV><span style="font-size:10px"><br /><br />Düzenleyen murat turan - 26.Mart.2011 Saat 10:58</span>]]>
   </description>
   <pubDate>Sat, 26 Mar 2011 10:57:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4528#4528</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : catch ifadesi i&#231;indeki return...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4523#4523</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3945" rel="nofollow">fatdem</a><br /><strong>Konu:</strong> 2049<br /><strong>Gönderim Zamanı:</strong> 22.Mart.2011 Saat 19:15<br /><br /><div>catch ifadesi içindeki return kaldırınca fout için tanımlanmamış yerel değişken hatası veriyor?</div><div><br></div><div>using System;</div><div>using System.Collections.Generic;</div><div>using System.Linq;</div><div>using System.Text;</div><div>using System.IO;</div><div><br></div><div>namespace ConsoleApplication4</div><div>{</div><div>&nbsp;&nbsp; &nbsp;class Program</div><div>&nbsp;&nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;static void Main(string&#091;&#093; args)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;string rpath = @"D:\test.txt";</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FileStream fout;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fout = new FileStream(rpath, FileMode.OpenOrCreate);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch (IOException exc)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(exc.Message + "okunamadı");</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.ReadKey();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;try</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fout.WriteByte((byte)'p');</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;catch (IOException exc) { Console.WriteLine(exc.Message + "hata"); }</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//fout.Close();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.ReadKey();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp;}</div><div>}</div>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 19:15:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4523#4523</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : saols&#305;n Murat Hocam. ellerine...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4502#4502</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3945" rel="nofollow">fatdem</a><br /><strong>Konu:</strong> 2049<br /><strong>Gönderim Zamanı:</strong> 08.Mart.2011 Saat 22:20<br /><br />saolsın Murat Hocam. ellerine sağlık. çalışmaya devam:)]]>
   </description>
   <pubDate>Tue, 08 Mar 2011 22:20:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4502#4502</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : Merhaba Fatih,  static &amp;#039;in...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4501#4501</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> 2049<br /><strong>Gönderim Zamanı:</strong> 08.Mart.2011 Saat 17:06<br /><br />Merhaba Fatih,<DIV>&nbsp;</DIV><DIV>static 'in kullanım amacı tüm formlardan/sınıflardan tek bir noktadaki değişkeni yönetmek veya çok sıklıkla kullanacağın bir prosedür veya fonsiyona daha hızlı erişmek. mesela;</DIV><DIV>&nbsp;</DIV><DIV>sisteme login olmuş bir kullanıcının kullanıcı ID sini tutan bir değişkeni Static tanımlayabilirsini. Bu sana ne sağlar?</DIV><DIV>&nbsp;</DIV><DIV>her formdan bu değere erişebilirsin. Bu değere erişerek, online kullanıcının belki sayfa girişinde yetkilerini kontrol ettirmek isteyebilirsin.</DIV><DIV>&nbsp;</DIV><DIV>veya logyazan bir prosedürün olsun. her hata oluştuğunda disk'e log yazmak istiyorsun. bu tür bir prosedür 'ü de static olarak tanımlayabilirsin. veya bir ibareyi şifreleyeceksin. bu tür bir fonksiyonu da static tanımlayabilirsin. </DIV><DIV>&nbsp;</DIV><DIV>mesela web programlamada sisteme login olan kullanıcının bilgileri genelde session nesnesiyle saklanır. Windows formlarda ise bu tür işler için&nbsp;static kullanılabilir.</DIV>]]>
   </description>
   <pubDate>Tue, 08 Mar 2011 17:06:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4501#4501</guid>
  </item> 
  <item>
   <title>c# başlangıç seviye,static konusu : b&#252;t&#252;n elemeanlar&#305; ve kendisi static...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4500#4500</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3945" rel="nofollow">fatdem</a><br /><strong>Konu:</strong> 2049<br /><strong>Gönderim Zamanı:</strong> 08.Mart.2011 Saat 03:31<br /><br />bütün elemeanları ve kendisi static olan bir sınıfın static yapıcı kullanması için bir sebep varmıdır? örneklendirebilirmisiniz?]]>
   </description>
   <pubDate>Tue, 08 Mar 2011 03:31:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2049&amp;PID=4500#4500</guid>
  </item> 
 </channel>
</rss>