21 instantiations of CodeDomSerializerException
System.Windows.Forms.Design (13)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
299manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 308manager.ReportError(new CodeDomSerializerException( 395manager.ReportError(new CodeDomSerializerException(string.Format(SR.CodeDomComponentSerializationServiceDeserializationError, name), manager));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
171Exception exception = new CodeDomSerializerException(exceptionText, linePragma) 458e = new CodeDomSerializerException(e, statement.LinePragma); 2764manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerUndeclaredName, variableReferenceEx.VariableName), manager));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
69manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, eventToSerialize.Name, e.Message), manager));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (4)
57manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, property.Name, e.Message), manager)); 123manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, propertyToSerialize.Name, e.Message), manager)); 141manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNullNestedProperty, name, property.Name), manager)); 217manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, property.PropertyType.FullName), manager));
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
280manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 296manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, type.FullName), manager));
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (8)
24CodeDomSerializerException exception = new(message, linePragma); 40CodeDomSerializerException exception = new(innerException, linePragma); 57CodeDomSerializerException exception = new(message, manager); 74CodeDomSerializerException exception = new(innerException, manager); 83Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException("message", (IDesignerSerializationManager)null)); 84Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException(new InvalidOperationException(), (IDesignerSerializationManager)null)); 94CodeDomSerializerException exception = new("message", new CodeLinePragma("fileName.cs", 11)); 108CodeDomSerializerException exception = new("message", new CodeLinePragma("fileName.cs", 11));
8 references to CodeDomSerializerException
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
54[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.CodeDomSerializerException))]
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
456if (e is not CodeDomSerializerException && statement.LinePragma is not null)
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (6)
24CodeDomSerializerException exception = new(message, linePragma); 40CodeDomSerializerException exception = new(innerException, linePragma); 57CodeDomSerializerException exception = new(message, manager); 74CodeDomSerializerException exception = new(innerException, manager); 94CodeDomSerializerException exception = new("message", new CodeLinePragma("fileName.cs", 11)); 108CodeDomSerializerException exception = new("message", new CodeLinePragma("fileName.cs", 11));