Advertisement
SciresM

BK4.convertToPK4()

Sep 23rd, 2016
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.         public PK4 convertToPK4()
  2.         {
  3.             PK4 pk4 = new PK4();
  4.             foreach (string property in ReflectUtil.getPropertiesCanWritePublic(typeof(PK4)).Intersect(ReflectUtil.getPropertiesCanWritePublic(typeof(BK4))))
  5.             {
  6.                 ReflectUtil.SetValue(pk4, property, ReflectUtil.GetValue(this, property));
  7.             }
  8.             pk4.Sanity = 0;
  9.             return pk4;
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement