Beispiel #1
0
 public static bool IsCompilerGenerated(FieldDefinition field)
 {
     foreach (CustomAttribute attribute in field.CustomAttributes)
     {
         TypeReference type = attribute.AttributeType;
         if (SerializableField.IsCompilerGeneratedAttrribute(type.Namespace, type.Name))
         {
             return(true);
         }
     }
     return(false);
 }