TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aaron Cronje
NA
256
262.7k
Attributes in c#
Dec 17 2011 11:22 PM
Hi........
I am doing a work in c# and define Attributes. How can we use attributes in c# and define its properties?
class
BasicAttributeDemo
{
[Obsolete]
public
void
MyFirstdeprecatedMethod()
{
Console.WriteLine("Called MyFirstdeprecatedMethod().");
}
[ObsoleteAttribute]
public
void
MySecondDeprecatedMethod()
{
Console.WriteLine("Called MySecondDeprecatedMethod().");
}
In this code define [Obsolete ] what is the meaning of this variable?
Reply
Answers (
2
)
Csharp code for getting lottery result from www.galottery.com
Finally block in C#