Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

SerializeObject

$
0
0

Hi!

I'm learning C# and I'm trying to understand the SerializeObject method. I've seen an example in MSDN (URL: http://msdn.microsoft.com/pt-BR/library/system.xml.serialization.xmlattributeattribute(v=vs.90).aspx) and the Main() method of a class named "Run" has the following: 

public class Run
{
   public static void Main()
   {

Run test = new Run();
        test.SerializeObject("Attributes.xml");

As I've never seen constructiong the class where Main() is, why this construction?

Thanks in advance

A.Barros 


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>