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
Mohamed Ihjas
NA
14
0
Variable name
Jan 4 2008 4:15 AM
I was creating a rule in fxcop to check the naming convention , but I cannot access the local variable name. the field name access only instatc variable.
my code like this.. pls help me how to access local variable name also.
public override ProblemCollection Check(Member member)
{
//if (member == null)
//{
// return base.Problems;
//}
//get field name
Field field = member as Field;
if (field == null)
{
return base.Problems;
}
string name = field.Name.Name;
if (name == null)
{
return base.Problems;
}
}
Reply
Answers (
1
)
Using WPF Window in a Windows Form Application?
URGENT: how to filtering and sorting XML using vb.net?? pls help...