internal MappedTypeDesc(string clrType, string name, string ns, XmlSchemaType xsdType, XmlSchemaObject context, SchemaImporterExtension extension, CodeNamespace code, StringCollection references) { _clrType = clrType.Replace('+', '.'); _name = name; _ns = ns; _xsdType = xsdType; _context = context; _code = code; _references = references; _extension = extension; }
internal int Add(string name, SchemaImporterExtension extension) { if (Names[name] != null) { if (Names[name].GetType() != extension.GetType()) { throw new InvalidOperationException(string.Format(ResXml.XmlConfigurationDuplicateExtension, name)); } return(-1); } Names[name] = extension; return(List.Add(extension)); }
public int Add(SchemaImporterExtension extension) { return(Add(extension.GetType().FullName, extension)); }
public void Remove(SchemaImporterExtension extension) { List.Remove(extension); }
public bool Contains(SchemaImporterExtension extension) { return(List.Contains(extension)); }
public int IndexOf(SchemaImporterExtension extension) { return(List.IndexOf(extension)); }
public void Insert(int index, SchemaImporterExtension extension) { List.Insert(index, extension); }