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
venu k
NA
48
2.9k
get the Inner object values by System.Reflection.PropertyInf
Dec 12 2013 2:26 AM
i was getting exception when ever try to read the inner object values at
what ever we passing
Object1 parameter has multiple Objects.
Collapse
|
Copy Code
public
static
void
WritePDF<T>(T Object1 ,
int
RrcordID) {
Type type =
typeof
(T);
foreach
(System.Reflection.PropertyInfo property
in
type.GetProperties())
{ svalue = type.GetProperty(property.Name).GetValue(Object1,
null
).ToString();
}
}
before this i need to check it and get the inner object value ,How ?
Reply
Answers (
1
)
need a move any object inside a panel in a smooth way
DateTime is not reflected instantly when time zone changes