/// <summary> /// Retrurns true and an XML converter to convert a reader value to the required type. /// </summary> /// <param name="type"></param> /// <param name="convert"></param> /// <param name="iscustom"></param> /// <returns></returns> private static bool IsCustomParsableType(Type type, out PDFXmlConverter convert, out bool iscustom) { PDFParsableValueAttribute valattr = GetCustomAttribute <PDFParsableValueAttribute>(type, true); if (null != valattr) { iscustom = true; convert = ConverterXml.GetParsableXmlConverter(type); return(null != convert); } else { iscustom = false; convert = null; return(false); } }
/// <summary> /// Returns the PDFValueConverter method for a type. /// </summary> /// <param name="t"></param> /// <returns></returns> public static PDFValueConverter GetParsableValueConverter(Type t) { ConverterXml.ParseableConverter conv = ConverterXml.GetParserConverter(t); return(conv.ValueConverter); }