Set - 9

Question 16 :

Which DLL translate XML to SQL in IIS? 

Answer :

Sqlisapi.dll


Question 17 :

What is the Differnce Between Response.write & response.output.Write

Answer :

In ASP.NET the Response object is of type HttpResponse and when you say Response.Write you're really saying (basically) HttpContext.Current.Response.Write and calling one of the many overloaded Write methods of HttpResponse. 
Response.Write then calls .Write() on it's internal TextWriter object: 

public void Write(object obj){ this._writer.Write(obj);}

HttpResponse also has a Property called Output that is of type, yes, TextWriter, so:

public TextWriter get_Output(){ return this._writer; } 

Which means you can to the Response whatever a TextWriter will let you. Now, TextWriters support a Write() method ala String.Format, so you can do this:

Response.Output.Write("Scott is {0} at {1:d}", "cool",DateTime.Now); 

But internally, of course, this this is happening:

public virtual void Write(string format, params object[] arg){
	this.Write(string.Format(format, arg));
}


Question 18 :

Which dll is required to translate XML to SQL in IIS ? 

Answer :

Microsoft.data.sqlxml.dll


Question 19 :

What should one do to make class serializable? 

Answer :

Answers1:
To make a class serializable is to mark it with the Serializable attribute as follows.

[Serializable]
public class MyObject {
    public int n1 = 0;
    public int n2 = 0;
    public String str = null;
}


Question 20 :

How is a property designated as read-only? 

Answer :

In VB.NET:
Public ReadOnly Property PropertyName As ReturnType
Get 'Your Property Implementation goes in here
End Get
End Property

in C#

public returntype PropertyName{
    get{
    //property implementation goes here
    }
    // Do not write the set implementation
}