November 3, 2008
@ 10:22 PM

Debug işlemleri yaparken işimize yarayacak 3 adet Attribute'ü aşağıdaki örnek üzerinden incelersek ;

DebuggerDisplay attribute'ü ilgili sınıfdan nesne örneğini incelediğimizde debug penceresinde istediğimiz şekilde görünmesini sağlayabiliriz.

DebuggerStepThrough  attribute'ü ile de F11 ile kod debug edildiğinde bu kod satırların debug işlemi sırasında dikkate alınmayacağını belirtir. Örneğin

Ogrenci o = new Ogrenci();
o.Name = "ali";
o.No = 22;

gibi bir kod satırında o.Name="ali"; satırında iken F11 'e bastığımızda Name özelliğinin set metoduna dallanacağını biliyoruz. Fakat DebuggerStepThrough attribute'ü set için uygulandığından bu dallanma gerçekleşmeyecek o.No=22 satırından itibaren debug işlemi devam ecektir. (Laf aramızda süper bir atrribute'müş kendisi yahu ;) )

DebuggerBrowsable isminden de açıkça belli olduğu üzere bu attibute'ün uygulanmış olduğu nesnenin X özelliği debug ekranında görüntülenmeyecektir.

 

[DebuggerDisplay("Ad ={Name},No = {No}")]
public class Ogrenci
{

   private string _name; 
   public string Name
   {
      [DebuggerStepThrough]
      get { return _name; }

      [DebuggerStepThrough]
      set { _name = value; }
   }

   private int _no;
   public int No
   {
      get { return _no; }
      set { _no = value; }
   }
   private int _x;
   [DebuggerBrowsable(DebuggerBrowsableState.Never)]
   public int X
   {
      get { return _x; }
      set { _x = value; }
   }
}


 
Wednesday, March 05, 2008 11:57:23 PM (GTB Standard Time, UTC+02:00)
Var olduğunu bilmeden uzun süredir aradığım attribute idi bunlar :)))çok teşeküür ederim eline sağlık.
Tuesday, January 27, 2009 3:45:48 AM (GTB Standard Time, UTC+02:00)
2006'dan beri kod generator'in kodlarında çalıp çalıp kullandığım yapılar :)
Kesinlikle debugging konusunda okunmasi gereken kitap
Debugging .Net 2.0 Applications John Robins'in kitabında bir chapter ayrılmış konu :)

Thursday, November 26, 2009 7:18:37 AM (GTB Standard Time, UTC+02:00)

<a href="http://www.gouggs.com/">Ugg Australia</a> Brand by the American company Deckers is a popular maker of Ugg Boots and fashion footwear. As we specialize in Australian made <a href="http://www.gouggs.com/">Ugg Boots</a> we do not sell Ugg Australia brand boots on this site but due to popular demand we can offer Ugg Australia Brand at our affiliated site: www.e-uggs.com;UGG New Style Boots are made from the <a href="http://www.gouggs.com/">highest quality plush twin-faced sheepskin</a>with craftsmanship you expect from UGG Australia.100% premium
Saturday, December 05, 2009 2:23:45 PM (GTB Standard Time, UTC+02:00)
<a href="http://www.buddyugg.com/">Buy ugg boots</a>
<a href="http://www.buddyugg.com/">cheap ugg boots</a>
<a href="http://www.buddyugg.com/">ugg boots on sale</a>
<a href="http://www.buddyugg.com/">cheap uggs</a>
<a href="http://www.buddyugg.com/">ugg boots online</a>
<a href="http://www.buddyugg.com/">ugg cardy boots</a>
<a href="http://www.buddyugg.com/">uggs boots on sale</a>
<a href="http://www.buddyugg.com/ugg-classic-cardy-c-21.html">Ugg Classic Cardy</a>
<a href="http://www.buddyugg.com/">discount ugg boots</a>


<a href="http://www.buddyugg.com/ugg-classic-cardy-c-21.html">Ugg Classic Cardy</a>
<a href="http://www.buddyugg.com/ugg-mayfaire-boots-c-68.html">UGG Mayfaire Boots</a>
<a href="http://www.buddyugg.com/ugg-bailey-button-c-47.html">UGG Bailey Button</a>
<a href="http://www.buddyugg.com/ugg-classic-crochet-c-22.html">UGG Classic Crochet</a>
<a href="http://www.buddyugg.com/ugg-classic-mini-boots-c-23.html">UGG Classic Mini Boots</a>
<a href="http://www.buddyugg.com/ugg-classic-short-boots-c-24.html">UGG Classic Short Boots</a>
<a href="http://www.buddyugg.com/ugg-classic-tall-boots-c-25.html">UGG Classic Tall Boots</a>
<a href="http://www.buddyugg.com/ugg-knights-bridge-c-48.html">UGG Knights Bridge</a>

<a href="http://www.buddyugg.com/ugg-lo-pro-button-c-45.htm">UGG Lo Pro Button</a>
<a href="http://www.buddyugg.com/ugg-locarno-boots-in-black-p-1222.html">UGG Locarno Boots</a>
<a href="http://www.buddyugg.com/ugg-nightfall-boots-c-32.html">UGG Nightfall Boots</a>
<a href="http://www.buddyugg.com/ugg-rainier-eskimo-c-44.html">Ugg Rainier Eskimo</a>
<a href="http://www.buddyugg.com/ugg-short-cut-shoes-c-46.html">UGG Short Cut shoes</a>
<a href="http://www.buddyugg.com/ugg-skimmer-c-34.html">Ugg Skimmer</a>
<a href="http://www.buddyugg.com/ugg-sundance-boots-c-35.html">UGG Sundance Boots</a>
<a href="http://www.buddyugg.com/ugg-tall-romantic-flower-boots-for-women-5802-in-pink-p-1120.html">UGG Tall Romantic Boots</a>

<a href="http://www.buddyugg.com/ugg-ultimate-tas-c-65.html">Ugg Ultimate Tas Boots</a>
<a href="http://www.buddyugg.com/ugg-tasmina-c-36.html">UGG Tasmina</a>
<a href="http://www.buddyugg.com/ugg-ultra-short-boots-c-37.html">UGG Ultra Short Boots</a>
<a href="http://www.buddyugg.com/ugg-ultra-short-sheepskin-c-43.html">UGG Ultra Short Sheepskin</a>
<a href="http://www.buddyugg.com/ugg-ultra-tall-boots-c-38.html">UGG Ultra Tall Boots</a>
<a href="http://www.buddyugg.com/ugg-amelie-suede-c-20.html">UGG Amelie Suede</a>
<a href="http://www.buddyugg.com/ugg-coquette-slippers-c-40.html">UGG Coquette Slippers</a>
<a href="http://www.buddyugg.com/ugg-gypsy-sandal-c-26.html">UGG Gypsy Sandal</a>
<a href="http://www.buddyugg.com/ugg-halendi-sandal-c-27.html">UGG Halendi Sandal</a>

<a href="http://www.buddyugg.com/ugg-hammond-sandals-c-28.html">UGG Hammond Sandals</a>
<a href="http://www.buddyugg.com/ugg-layback-slipper-c-29.html">UGG Layback Slipper</a>
<a href="http://www.buddyugg.com/ugg-matala-sandal-c-30.htm">Ugg Matala Sandal</a>
<a href="http://www.buddyugg.com/ugg-napoule-sandal-c-31.html">Ugg Napoule Sandal</a>
<a href="http://www.buddyugg.com/ugg-persephone-sandal-c-33.html">Ugg Persephone Sandal</a>
<a href="http://www.buddyugg.com/ugg-baby-boots-c-41.html">UGG Baby Boots</a>
<a href="http://www.buddyugg.com/ugg-bags-c-69.html">UGG Bags</a>
<a href="http://www.buddyugg.com/ugg-gifts-c-61.html">UGG Gifts</a>
Tuesday, December 22, 2009 3:22:03 AM (GTB Standard Time, UTC+02:00)
20091222c1ygy I wear <a href="http://www.boonoutlet.com/ugg-genuine-womens-nightfall-boots-black-p-1251.html">UGG Nightfall Boots on sale</a>is considered a kind of a fashion trend, this trend has affected the whole world. If you have not tried, then it is regrettable. With the advent of winter, <a href="http://www.boonoutlet.com/ugg-new-arrival-suede-boots-5230-black-p-1279.html">UGG New Arrival Suede Boots </a>online become popular up a lot of people can not wait to experience the feeling of wearing ugg prices ugg some people appear to be high, ugg boots online above ugg style good, <a href="http://www.boonoutlet.com/ugg-boots-gray-carved-in-pattern-on-hot-sale-p-1226.html">UGG Gray classic tall</a> are always welcome to many people as it is high quality and fashion design.For myself,i like this
<a href="http://www.boonoutlet.com/ugg-authority-classic-mini-boot-black-for-women-p-1014.html">UGG Classic Mini Boot </a> very much,you can have it and show yourself now,it is not let you downUgg Napoule Sandal,the price is not expensive. To meet your needs, make haste to experience the feeling of the trend.


Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview