Interface IRawFieldAccess

Summary description for IRawFieldAccess.

Namespace: EPiServer.BaseLibrary.Serialization
Assembly: EPiServer.BaseLibrary.dll
Version: 8.11.0
Syntax
public interface IRawFieldAccess

Methods

GetFieldValue(Object, String)

Extract value for the specified field from an object instance.

Declaration
object GetFieldValue(object obj, string schemaField)
Parameters
Type Name Description
System.Object obj

The object instance to read field value from.

System.String schemaField

The field to read

Returns
Type Description
System.Object

The value

Remarks

Note that the schemaField refers to the name the field has been given from a schema (ISchema and SchemaItem). You need to provide some type of mapping from the schema name to the actual field in the object.

SetFieldValue(Object, String, Object)

Set the specified field in the object instance to the given value.

Declaration
void SetFieldValue(object obj, string schemaField, object value)
Parameters
Type Name Description
System.Object obj

The object instance to set field value for.

System.String schemaField

The field to set.

System.Object value

The value to set the field to.

Remarks

See remarks for GetFieldValue(Object, String) regarding schema mapping.

Extension Methods