C# Namespaces(Engineering > Computer Science And Engineering > C# .net ) Questions and Answers
Explanation:-
Answer: Option C. -> 6Explanation:-
Answer: Option B. -> pi not defineokExplanation:-
Answer: Option A. -> ResponseWebException has two properties that relate to network errors:
Response and Status.
We can obtain a reference to the WebResponse object inside an exception handler through the Response property. For the HTTP protocol, this object describes the error. It is defined like this: public WebResponse Response { get; }
When an error occurs, we can use the Status property of WebException to find out what went wrong. It is defined like this:
public WebExceptionStatus Status {get; }
Explanation:-
Answer: Option D. -> DEBUG and MYTEST are definedExplanation:-
Answer: Option D. -> Both a & bclass Gen This defines the generics declaration where 'T' is the name of type parameter.This parameter is used as a placeholder for the actual type that will be specified when a Gen object is created.Gen is a generic class . T is used to declare a variable called 'ob'.
Explanation:-
Answer: Option D. -> All of the mentionedCreates a WebRequest object for the URI specified by the string passed by requestUriString. The object returned will
implement the protocol specified by the prefix of the URI.Thus, the object will be an instance of a class that inherits WebRequest. A NotSupportedException is thrown if the requested protocol is not available. A UriFormatException is thrown if the URI format is invalid.