Ejemplo n.º 1
0
 public XMLFieldHandler(XMLReflectionHandler field, XMLTypeHandler typeHandler)
 {
     ReflectionInfo = field;
     TypeHandler    = typeHandler;
     Name           = ReflectionInfo?.Name ?? XMLHelpers.GetTypeName(TypeHandler.Type);
 }
Ejemplo n.º 2
0
        public static XMLFieldHandler ResolveFieldHandler(Type type, XMLReflectionHandler property)
        {
            XMLTypeHandler typeHandler = GetTypeHandler(type);

            return(typeHandler == null ? null : new XMLFieldHandler(property, typeHandler)); // TypeHandler is null if an excluded type.
        }