Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Glitch in Sample Code. #11812

@hpriske

Description

@hpriske

Type of issue

Typo

Description

This sample Code

XmlSerializer[]serializers= new XmlSerializer[3];
serializers = XmlSerializer.FromTypes(types);

gives the idea, the serializers array needs some initialization. But the 'new' operation is useless. It's allocated and lost on the next line.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.xml.serialization.xmlserializer.fromtypes?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Xml.Serialization/XmlSerializer.xml

Document Version Independent Id

ea814dfb-4512-88cc-3f1d-9f456d6e0516

Platform Id

d549c472-96bf-f516-4b78-e48d53e7d56c

Article author

@hpriske

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions