private bool CatelVersionSupportsXmlSchemaManager(CatelType catelType)
{
if (catelType == null)
{
return false;
}
if (!_isSupported.HasValue)
{
if (_msCoreReferenceFinder.XmlQualifiedName == null || _msCoreReferenceFinder.XmlSchemaSet == null)
{
return false;
}
var xmlSchemaManager = (TypeDefinition)catelType.TypeDefinition.Module.FindType("Catel.Core", "Catel.Runtime.Serialization.Xml.XmlSchemaManager");
_isSupported = xmlSchemaManager != null;
if (!_isSupported ?? false)
{
var xmlSchemaManagerPre38 = (TypeDefinition)catelType.TypeDefinition.Module.FindType("Catel.Core", "Catel.Runtime.Serialization.XmlSchemaManager");
_isSupported = xmlSchemaManagerPre38 != null;
}
}
return _isSupported.Value;
}
}