DesignerSerializerAttribute Constructors

Definition

Initializes a new instance of the DesignerSerializerAttribute class.

Overloads

DesignerSerializerAttribute(String, String)

Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs

Initializes a new instance of the DesignerSerializerAttribute class.

C#
public DesignerSerializerAttribute(string? serializerTypeName, string? baseSerializerTypeName);
C#
public DesignerSerializerAttribute(string serializerTypeName, string baseSerializerTypeName);

Parameters

serializerTypeName
String

The fully qualified name of the data type of the serializer.

baseSerializerTypeName
String

The fully qualified name of the base data type of the serializer. Multiple serializers can be supplied for a class as long as the serializers have different base types.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DesignerSerializerAttribute(String, Type)

Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs

Initializes a new instance of the DesignerSerializerAttribute class.

C#
public DesignerSerializerAttribute(string? serializerTypeName, Type baseSerializerType);
C#
public DesignerSerializerAttribute(string serializerTypeName, Type baseSerializerType);

Parameters

serializerTypeName
String

The fully qualified name of the data type of the serializer.

baseSerializerType
Type

The base data type of the serializer. Multiple serializers can be supplied for a class as long as the serializers have different base types.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

DesignerSerializerAttribute(Type, Type)

Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs
Source:
DesignerSerializerAttribute.cs

Initializes a new instance of the DesignerSerializerAttribute class.

C#
public DesignerSerializerAttribute(Type serializerType, Type baseSerializerType);

Parameters

serializerType
Type

The data type of the serializer.

baseSerializerType
Type

The base data type of the serializer. Multiple serializers can be supplied for a class as long as the serializers have different base types.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1