M

Entity.Get``1

Description:
Retrieves the value of the field in the entity.
Remarks:

The template parameter must match the type of the field (specified when creating the Schema) exactly; this method does not perform data type conversions. The types for containers are IList for arrays and IDictionary for maps.

This method is a shortcut that will look up the field by name. If you want to call it on many entities, it is faster if you look up the field yourself.

Overloads (4):
Get``1(String,ForgeTypeId)
public FieldType Get<FieldType>(
	string fieldName,
	ForgeTypeId unitTypeId
)
  • String
    fieldName
    The name of the field to retrieve.
  • unitTypeId
    Identifier of the unit to which the value will be converted before returning. Must be compatible with the spec specified when creating the Schema.
Return Value FieldType