we are working in .net namespaces like using
system.io,system.text. these namespace before we
use "using " keyword what means of using?

Answer Posted / shyam

using also defines the scope of our code..
suppose if we use
using(Class obj = new Class())
{
// code goes here
}

so it will also help garbage collector to empty the memory that was used for this code.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are validators and list some validators of asp.net?

542


What is difference Between Authentication and authorization?

574


How to do state management in ASP.NET?

599


How do we ensure view state has not tampered?

606


Define a web service in .net?

615






Is it right that ASP.NET Web API has replaced WCF?

512


Is razor a programming language?

531


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

601


How can you access the properties and controls of master pages from content pages?

516


What is postback and autopostback in asp.net?

527


What is meant by ispostback in asp net?

544


What are different types of api?

533


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1508


What is the use of dispose method?

561


What are the event handlers that we can have in global.asax file?

532