Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
get the Inner object values by System.Reflection.PropertyInf
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
venu k
10y
1.1k
1
Reply
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 ?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
need a move any object inside a panel in a smooth way
DateTime is not reflected instantly when time zone changes