Advertisement
ivandrofly

Subtitle edit copy paragraph property

Feb 11th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1.             this.GetType().
  2.             GetProperties()
  3.             .Select<PropertyInfo, Action>(p =>
  4.             {
  5.                 return () =>
  6.                 {
  7.                     var @value = typeof(Paragraph).GetProperty(p.Name).GetValue(paragraph, null);
  8.                     p.SetValue(this, value, null);
  9.                 };
  10.             }).ToList().ForEach(a => a.Invoke());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement