VB .Net Question:

How does the XmlSerializer work?

Tweet Share WhatsApp

Answer:

XmlSerializer in the .NET Framework is a great tool to convert Xml into runtime objects and vice versa
If you define integer variable and a object variable and a structure then how those will be plotted in memory.
Integer , structure - System.ValueType -- Allocated memory on stack , infact integer is primitive type recognized and allocated memory by compiler itself .
Infact , System.Int32 definition is as follows :

[C#]
[Serializable]
public struct Int32 : IComparable, IFormattable, IConvertible
So , it's a struct by definition , which is the same case with various other value types .
Object - Base class , that is by default reference type , so at runtime JIT compiler allocates memory on the "Heap" Data structure .
Reference types are defined as class , derived directly or indirectly by System.ReferenceType

Download VB .Net PDF Read All 69 VB .Net Questions
Previous QuestionNext Question
What is a delegate, why should you use it and how do you call it ?Explain about visual basic?