Exemplo n.º 1
0
 private bool TryGetTypeMappingAndPropertyOptions(Type reflectedType,
                                                  PropertyInfo propertyInfo,
                                                  out TypeMappingOptions typeMapping,
                                                  out PropertyMappingOptions propertyOptions)
 {
     typeMapping     = GetTypeMapping(reflectedType);
     propertyOptions = typeMapping.GetPropertyOptions(propertyInfo);
     return(true);
 }
Exemplo n.º 2
0
 internal TypeMappingOptions GetTypeMapping(Type type)
 {
     return(this.typeMappingDict.GetOrAdd(type.FullName, k =>
     {
         TypeMappingOptions typeMapping = new TypeMappingOptions(type);
         typeMapping.DefaultPropertyInclusionMode =
             GetDefaultPropertyInclusionMode();
         return typeMapping;
     }));
 }
Exemplo n.º 3
0
 public Configurator(TypeMappingOptions owner)
 {
     this.owner = owner;
 }