Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 public int Add(SchemaImporterExtension extension)
 {
     return(Add(extension.GetType().FullName, extension));
 }
Ejemplo n.º 4
0
 public void Remove(SchemaImporterExtension extension)
 {
     List.Remove(extension);
 }
Ejemplo n.º 5
0
 public bool Contains(SchemaImporterExtension extension)
 {
     return(List.Contains(extension));
 }
Ejemplo n.º 6
0
 public int IndexOf(SchemaImporterExtension extension)
 {
     return(List.IndexOf(extension));
 }
Ejemplo n.º 7
0
 public void Insert(int index, SchemaImporterExtension extension)
 {
     List.Insert(index, extension);
 }