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