GetField() public method

Gets the field.
public GetField ( Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
field Field The field.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return object
Exemplo n.º 1
0
 /// <summary>
 /// Gets the field.
 /// </summary>
 /// <param name="field">The field.</param>
 /// <param name="config">The config.</param>
 /// <param name="context">The context.</param>
 /// <returns>System.Object.</returns>
 public override object GetField(Sitecore.Data.Fields.Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context)
 {
     if (string.IsNullOrWhiteSpace(field.Value))
     {
         return(null);
     }
     return(_baseMapper.GetField(field, config, context));
 }