Example #1
0
 internal static MethodDefinition CreateShouldSerialize(this PropertyDefinition property, bool shouldSerialize)
 {
     return(property.CreateAssociatedBoolMethod(new MethodArgument
     {
         Name = $"ShouldSerialize{property.Name}",
         Attributes = MethodAttributes.Public,
     }, shouldSerialize));
 }