From c691cb87f06803c0e1664b013eda080caad20e4d Mon Sep 17 00:00:00 2001 From: Shin Mao Date: Wed, 8 Nov 2017 10:54:36 -0800 Subject: [PATCH] Update xmlserializergenerator-instructions.md --- samples/xmlserializergenerator-instructions.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/xmlserializergenerator-instructions.md b/samples/xmlserializergenerator-instructions.md index 71a7e499c..8d93050e7 100644 --- a/samples/xmlserializergenerator-instructions.md +++ b/samples/xmlserializergenerator-instructions.md @@ -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.