Sunday, May 12, 2013

Basics Of Attributes in .Net Framework

The Attributes are the declarative informations used to instruct the .Net Runtime. The attributes can work with types, fields, methods and properties. These informations are stored with the metadata file. By using the Attributes the developer can control the CLR. So we will get a dynamic behaviour from the CLR.

Eg:- Serializable is an Attribute.

Usage of Attributes in VB.Net(Sample):

<Serializable()> _
Public Class Employee
Public Name As String
Public Designation As String
End Class



Usage of Attributes in C#.Net(Sample):


[Serializable()]
public class Employee
{
public string Name;
public string Designation;
}


Note: All the attributes are classes that derived from System.Attribute class.


.Net framework has a lot of attributes that can be used for controlling XML serialization, Web services, COM interoperability etc.. And .Net provides the oppertunity to create custom attributes.

17 comments:

Anonymous said...

Hi my loved one! I wish to say that this post is amazing, nice written and include almost all vital
infos. I would like to peer more posts like this .


Feel free to visit my homepage :: earn money drawing

Anonymous said...

I've been browsing on-line more than three hours nowadays, but I never found any interesting article like yours. It's lovely
value sufficient for me. Personally, if all webmasters and bloggers made excellent content
material as you did, the net will probably be much more helpful
than ever before.

Also visit my web site jewellery designs

Anonymous said...

usually posts some quite intriguing stuff like this.

In case you are a novice to this web site

Also visit my web page; ,cheap designer earrings

Anonymous said...

If you disregarded the Ugg guidelines and wore your boots in water, or else you dropped liquid in your boot, you could have stains along your boots.
When it comes to essentially the most styling infant, dress your kids in uggs.
The unique qualities in the sheepskin mean that they can will maintain feet warm in even the coldest of weather, but that when you put them on in summer they won't overheat your foot.

Here is my web page; edu.tw

Anonymous said...

Cheap Burberry Handbags These furnishings can be a good
choice. Buy cheap UGG boots visit: When you are looking at purchasing for the reason that,
world-wide-web retailers offer them with lower
prices than others from local sellers. In addition, if you seem with the labels to the manufacturing site, you need to bear in mind the labels which exhibit "Manufactured in China" are authentic, and several others are counterfeits.


Here is my page; プラダ

Anonymous said...

HP laser airplane printing software I need it.


Feel free to visit my blog post xerox phaser 8560dn driver

Anonymous said...

This information is priceless. When can I find out more?

Also visit my blog: http://wiki.mangotele.com/

Anonymous said...

Thanks for sharing your thoughts on pictureview.
Regards

My webpage ... Private Cloud Hosting

Anonymous said...

Cheap Burberry Handbags These furnishings can be a good choice.
People of each class and level can simply get these because their cost is of every range.
Regardless of what your first choice is,
UGG Classic Short you will find in the UGG boot.

My blog post :: プラダ 財布

Anonymous said...

Sir, extremely v usefull the site deliver me theVideo thangs.


Review my web blog; xerox phaser 8560 ink

Anonymous said...

I always used to read paragraph in news papers but now as I am a user of web therefore from now I am using
net for articles, thanks to web.

my blog ... xerox 8560 windows 7 driver

Anonymous said...

Wе're a group of volunteers and starting a new scheme in our community. Your site provided us with valuable information to work on. You have done a formidable job and our whole community will be thankful to you.

my page: Facebook Login Friends

Anonymous said...

introducing children to new dating partner http://loveepicentre.com/map/ online dating discounts
welthy women dating [url=http://loveepicentre.com/articles/]tatis dating[/url] online dating statistics danger
free dating site for black single [url=http://loveepicentre.com]christian articles about dating[/url] dating site without information required [url=http://loveepicentre.com/user/nokpetite/]nokpetite[/url] women for bd dating

Anonymous said...

dating 24-7 http://loveepicentre.com/ gay flash games dating sim
ukraine lutsk no dating [url=http://loveepicentre.com/]art dating[/url] dating perth
dating on msn [url=http://loveepicentre.com/faq/]single nudist dating sites[/url] totally free bi sexual dating sites [url=http://loveepicentre.com/user/hvfunguy/]hvfunguy[/url] cento food product dating

Anonymous said...

dating direct affinity http://loveepicentre.com/articles/ malou postones on filipina dating website
vegan dating worldwide [url=http://loveepicentre.com/faq/]dating indian woman[/url] who is fernando colunga dating
funning dating advice [url=http://loveepicentre.com]the most credible adult dating site[/url] fenton dating [url=http://loveepicentre.com/user/piyush/]piyush[/url] single mother dating worries

Anonymous said...

black dating free service http://loveepicentre.com/faq/ jewish singles dating
olaf dating scam [url=http://loveepicentre.com/testimonials/]dating business travel[/url] who is nicole scherzinger dating
dating simulation games 18 [url=http://loveepicentre.com/articles/]dating a christian man[/url] bobby dating [url=http://loveepicentre.com/user/val2267/]val2267[/url] free adult dating huntsville ohio

Unknown said...

Hi,Selecting a web application development language is a major task for programmers in Web Design Cochin, because as we can find many techniques, tools and methods to expand diverse websites. Thanks...........

landscape paintings nature art landscape art sky art illustration art artwork art human art beautiful art landscape prints nature prints sky prints illustration prints artwork prints human prints beautiful prints beautiful special promotions nature special promotions sky special promotions illustration special promotions artwork special promotions beautiful canvas prints beautiful painting canvas prints beautiful framed prints beautiful painting framed prints beautiful posters beautiful painting posters