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