private XmlSchemaType ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping)
 {
     if (!(mapping is EnumMapping))
     {
         throw new InvalidOperationException(Res.GetString("XmlInternalErrorDetails", new object[] { "Unsuported anonymous mapping type: " + mapping.ToString() }));
     }
     return this.ExportEnumMapping((EnumMapping) mapping, null);
 }
Пример #2
0
 XmlSchemaType ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping) {
     if (mapping is EnumMapping) {
         return ExportEnumMapping((EnumMapping)mapping, null);
     }
     else {
         throw new InvalidOperationException(Res.GetString(Res.XmlInternalErrorDetails, "Unsuported anonymous mapping type: " + mapping.ToString()));
     }
 }