<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	C# &#8211; Exception Sınıfı Oluşturma yazısına yapılan yorumlar	</title>
	<atom:link href="https://www.srdrylmz.com/c-exception-sinifi-olusturma/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.srdrylmz.com/c-exception-sinifi-olusturma/</link>
	<description></description>
	<lastBuildDate>Sat, 17 Oct 2020 15:46:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		Yazar: Serdar Yılmaz		</title>
		<link>https://www.srdrylmz.com/c-exception-sinifi-olusturma/#comment-1530</link>

		<dc:creator><![CDATA[Serdar Yılmaz]]></dc:creator>
		<pubDate>Sun, 22 Mar 2020 18:26:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.srdrylmz.com/?p=4267#comment-1530</guid>

					<description><![CDATA[&lt;a href=&quot;https://www.srdrylmz.com/c-exception-sinifi-olusturma/#comment-1527&quot;&gt;hakan&lt;/a&gt; yorumuna yanıt olarak.

Merhaba,

Bir hata oluşması durumunda .NET arkaplanda bir Exception nesnesi oluşturmakta ve o nesnenin içeriğini oluşan hata türüne göre doldurarak geri döndürmektedir. Döndürülen nesne catch blogu tarafından yakalanarak kullanılabilmektedir. &quot;ex&quot; yazdıktan sonra &quot;message&quot; özelliğine erişebilmemizin nedeni; ex&#039;in bir referans olması ve .NET tarafından oluşturulan Exception nesnesinin referansını tutuyor olmasıdır.

&lt;code&gt;public class Student
{
    public string Name { get; set; }
    public string SurName { get; set; }
}

class StudentManager
{
    public void StudentName(Student student)
    {
        Console.WriteLine(student.Name);
    }
}&lt;/code&gt;

Benzer şekilde Student sınıfı static bir sınıf olmamasına rağmen StudentManager sınıfı içerisindeki StudentName metodunda parametre olarak yer aldığı için içerisindeki özelliklere StudentName metodu içerisinde erişebilmekteyiz.]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.srdrylmz.com/c-exception-sinifi-olusturma/#comment-1527">hakan</a> yorumuna yanıt olarak.</p>
<p>Merhaba,</p>
<p>Bir hata oluşması durumunda .NET arkaplanda bir Exception nesnesi oluşturmakta ve o nesnenin içeriğini oluşan hata türüne göre doldurarak geri döndürmektedir. Döndürülen nesne catch blogu tarafından yakalanarak kullanılabilmektedir. &#8220;ex&#8221; yazdıktan sonra &#8220;message&#8221; özelliğine erişebilmemizin nedeni; ex&#8217;in bir referans olması ve .NET tarafından oluşturulan Exception nesnesinin referansını tutuyor olmasıdır.</p>
<p><code>public class Student<br />
{<br />
    public string Name { get; set; }<br />
    public string SurName { get; set; }<br />
}</p>
<p>class StudentManager<br />
{<br />
    public void StudentName(Student student)<br />
    {<br />
        Console.WriteLine(student.Name);<br />
    }<br />
}</code></p>
<p>Benzer şekilde Student sınıfı static bir sınıf olmamasına rağmen StudentManager sınıfı içerisindeki StudentName metodunda parametre olarak yer aldığı için içerisindeki özelliklere StudentName metodu içerisinde erişebilmekteyiz.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Yazar: hakan		</title>
		<link>https://www.srdrylmz.com/c-exception-sinifi-olusturma/#comment-1527</link>

		<dc:creator><![CDATA[hakan]]></dc:creator>
		<pubDate>Sat, 14 Mar 2020 16:51:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.srdrylmz.com/?p=4267#comment-1527</guid>

					<description><![CDATA[hocam exception static bir class değil ve bu sınıftan new ile bir nesne üretmedik fakat catch(Exception ex) 

ex yazdıktan sonra NOKTA koyarak message property sine erişebiliyoruz bu sınıf static olmadıgı halde ve yeni bir nesne uretmedıgımız halde message propertysine nasıl erişebiliyoruz]]></description>
			<content:encoded><![CDATA[<p>hocam exception static bir class değil ve bu sınıftan new ile bir nesne üretmedik fakat catch(Exception ex) </p>
<p>ex yazdıktan sonra NOKTA koyarak message property sine erişebiliyoruz bu sınıf static olmadıgı halde ve yeni bir nesne uretmedıgımız halde message propertysine nasıl erişebiliyoruz</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
