Operator implicit operator
implicit operator FieldDefinition<TDocument, TField>(string)
Performs an implicit conversion from string to FieldDefinition<TDocument, TField>.
public static implicit operator FieldDefinition<TDocument, TField>(string fieldName)
Parameters
fieldName
stringName of the field.
Returns
- FieldDefinition<TDocument, TField>
The result of the conversion.
implicit operator FieldDefinition<TDocument>(FieldDefinition<TDocument, TField>)
Performs an implicit conversion from FieldDefinition<TDocument, TField> to FieldDefinition<TDocument>.
public static implicit operator FieldDefinition<TDocument>(FieldDefinition<TDocument, TField> field)
Parameters
field
FieldDefinition<TDocument, TField>The field.
Returns
- FieldDefinition<TDocument>
The result of the conversion.