Esempio 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);
 }
Esempio 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;
     }));
 }
Esempio n. 3
0
 public Configurator(TypeMappingOptions owner)
 {
     this.owner = owner;
 }