Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.GetType().
- GetProperties()
- .Select<PropertyInfo, Action>(p =>
- {
- return () =>
- {
- var @value = typeof(Paragraph).GetProperty(p.Name).GetValue(paragraph, null);
- p.SetValue(this, value, null);
- };
- }).ToList().ForEach(a => a.Invoke());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement