1
0
mirror of synced 2026-02-02 06:00:10 -05:00

Update xmlserializergenerator-instructions.md

This commit is contained in:
Shin Mao
2017-11-08 10:54:36 -08:00
committed by GitHub
parent dc23e2e5ac
commit c691cb87f0

View File

@@ -47,7 +47,10 @@ Here are the step by step instructions on how to use Xml Serializer Generator in
public int Value;
}
```
Now you can use `XmlSerializer` to serialize the objects of MyClass.
Now you can create an `XmlSerializer` for MyClass.
```c#
var serializer = new System.Xml.Serialization.XmlSerializer(typeof(MyClass));
```
6. Build the application by running `dotnet build`. If everything succeeds, an assembly named MyApp.XmlSerializers.dll will be generated in the output folder. You will see warnings in the build output if the tool failed to generate the assembly.