public CanImport ( |
||
schemas | ||
typeNames | ICollection |
|
Результат | bool |
public bool CanImport (XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames)
{
if (schemas == null)
throw new ArgumentNullException ("schemas");
if (typeNames == null)
throw new ArgumentNullException ("typeNames");
if (!schemas.IsCompiled)
schemas.Compile ();
foreach (var name in typeNames)
if (!CanImport (schemas, name))
return false;
return true;
}
XsdDataContractImporter::CanImport ( |
|
XsdDataContractImporter::CanImport ( |
|
XsdDataContractImporter::CanImport ( |
|
XsdDataContractImporter::CanImport ( |
void DoCanImport (bool result, params string [] schemaFiles) { var ccu = new CodeCompileUnit (); var xdi = new XsdDataContractImporter (ccu); var xss = new XmlSchemaSet (); foreach (var schemaFile in schemaFiles) xss.Add (null, schemaFile); Assert.AreEqual (result, xdi.CanImport (xss)); }