Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool HasField(TElement, string, string)

  • Declared in: RT.Serialization.IClassifyFormat<TElement>
  • Interface method
  • Abstract

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

TElementelement The element that may represent an object.
stringfieldName The name of the field sought.
stringdeclaringType 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.