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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.