/// <summary> /// Gets the serializer for a specific property. /// </summary> /// <param name="prop">The property that is being bound.</param> /// <returns>The serializer.</returns> internal static IDbObjectSerializer EvaluateRules(ClassPropInfo prop) { return(_handlers.Select(h => h.GetSerializer(prop.Type, prop.MemberType, prop.Name)).Where(s => s != null).FirstOrDefault() ?? _defaultConfig.GetSerializer(prop.Type, prop.MemberType, prop.Name)); }
/// <summary> /// Gets the serializer for a specific property. /// </summary> /// <param name="prop">The property that is being bound.</param> /// <returns>The serializer.</returns> internal static IDbObjectSerializer EvaluateRules(ClassPropInfo prop) { return(GetCustomSerializer(prop) ?? _defaultConfig.GetSerializer(prop.Type, prop.MemberType, prop.Name)); }