daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Sep 12th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Func<FieldDefinition, bool> isFieldIgnored = (f) => {
  2.     IMemberInfo memberInfo;
  3.     if (typeInfo.Members.TryGetValue(MemberIdentifier.New(f), out memberInfo))
  4.         return memberInfo.IsIgnored;
  5.     else
  6.         return true;
  7. };
  8.  
  9. var structFields =
  10.     (from field in typedef.Fields
  11.     where !isFieldIgnored(field) &&
  12.         !field.HasConstant &&
  13.         EmulateStructAssignment.IsStruct(field.FieldType) &&
  14.         !field.IsStatic
  15.     select field).ToArray();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top