HasField() public méthode

See IMessage.HasField.
public HasField ( FieldDescriptor field ) : bool
field FieldDescriptor
Résultat bool
 /// <summary>
 /// Checks if a singular extension is present.
 /// </summary>
 public bool HasExtension <TExtension>(GeneratedExtensionBase <TExtension> extension)
 {
     return(extensions.HasField(extension.Descriptor));
 }
Exemple #2
0
 /// <summary>
 /// Checks if a singular extension is present.
 /// </summary>
 public bool HasExtension <TExtension>(GeneratedExtensionLite <TMessage, TExtension> extension)
 {
     VerifyExtensionContainingType(extension);
     return(extensions.HasField(extension.Descriptor));
 }
Exemple #3
0
 public override bool HasField(FieldDescriptor field)
 {
     VerifyContainingType(field);
     return(fields.HasField(field));
 }