Exemple #1
0
 public XMLFieldHandler(XMLReflectionHandler field, XMLTypeHandler typeHandler)
 {
     ReflectionInfo = field;
     TypeHandler    = typeHandler;
     Name           = ReflectionInfo?.Name ?? XMLHelpers.GetTypeName(TypeHandler.Type);
 }
        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.
        }