protected override object TryGetStoreProperty(StorePropertyDefinition propertyDefinition) { SchemaConverter.Getter getter = this.schemaConverter.GetGetter(propertyDefinition); if (getter != null) { object obj = getter(this.underlyingPropertyBag); if (obj is PropertyErrorCode) { obj = new PropertyError(propertyDefinition, (PropertyErrorCode)obj); } return(ExTimeZoneHelperForMigrationOnly.ToExDateTimeIfObjectIsDateTime(this.exTimeZone, obj)); } return(new PropertyError(propertyDefinition, PropertyErrorCode.NotSupported)); }
protected void Add(PropertyDefinition source, SchemaConverter.Getter getter, SchemaConverter.Setter setter) { this.mapping.Add(source, new KeyValuePair <SchemaConverter.Getter, SchemaConverter.Setter>(getter, setter)); }