Lines Matching refs:field
221 foreach (var field in fields.InFieldNumberOrder())
223 var accessor = field.Accessor;
225 if (!ShouldFormatFieldValue(message, field, value))
245 /// Determines whether or not a field value should be serialized according to the field,
248 private bool ShouldFormatFieldValue(IMessage message, FieldDescriptor field, object value) =>
249 field.HasPresence
251 ? field.Accessor.HasValue(message)
254 : settings.FormatDefaultValues || !IsDefaultValue(field, value);
346 throw new ArgumentException("Invalid field type");
460 // and then proceed, writing it as if we were definitely in a field. (We never need to wrap it in an extra string...
642 throw new InvalidOperationException("Unexpected case in struct field: " + specifiedField.FieldNumber);
911 // If the attribute hasn't been applied, fall back to the name of the field.
922 // If the attribute hasn't been applied, fall back to the name of the field.