public CanImport ( |
||
schemas | ||
element | ||
return | bool |
public bool CanImport (XmlSchemaSet schemas, XmlSchemaElement element)
{
if (schemas == null)
throw new ArgumentNullException ("schemas");
if (!schemas.IsCompiled)
schemas.Compile ();
return CanImport (schemas, element.ElementSchemaType as XmlSchemaComplexType);
}
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)); }