Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string> list = new List<string>();
- PropertyInfo[] fields = object.GetType().GetProperties();
- foreach (PropertyInfo f in fields)
- {
- list.Add( f.Name, string.Format("{0}", f.GetValue(object)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement