Declaration
public bool HasField(
TElement element,
string fieldName,
string declaringType
)Summary
Determines whether the element is an object and contains a sub-element for the specified field.
Parameters
| TElement | element |
The element that may represent an object. |
| string | fieldName |
The name of the field sought. |
| string | declaringType |
The assembly-qualified name of the type that declares the field. (This can be null if the field name is unique
within the type of the object being deserialized.) |
Returns
true if
element is an object and has the specified field;
false otherwise.
Remarks
This should return
true if
element represents an element generated by
IClassifyFormat<TElement>.FormatObject(IEnumerable<ObjectFieldInfo<TElement>>) in which the field with the specified
fieldName was present.