1.

Which namespace is mostly preferred for the operation of networking in C#?(a) System.Web(b) System.in(c) System.Net.Mail(d) All of the mentionedI got this question in examination.My question is from Fundamental of Networking topic in division Namespaces, Preprocessors and Networking of C#

Answer»

Correct OPTION is (c) System.NET.Mail

To EXPLAIN: Networking SUPPORT is contained in several namespaces defined by the .NET Framework. The primary namespace for networking is System.Net. It defines a large number of high-level, easy-to-use classes that support various types of operations common to the Internet. Several namespaces nested under System.Net are also provided. EXAMPLE: System.Net.Mail.



Discussion

No Comment Found

Related InterviewSolutions