----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: anurag4dotnet Message 3 in Discussion Hi,<o:p></o:p> <o:p> </o:p> What is the namespace used to access the information about the Assembly in C#?<o:p></o:p> Ans: The Namespaces are used to separate classes & types logically. They are also used to organize the whole system. Eg. System.Web , System.Data.SqlClient etc.<o:p></o:p> What is difference between read only and constant statement?<o:p></o:p> Ans: The read only values can be changed once in the constructor. But it is must to set a value into a const while declaration.<o:p></o:p> What is static constructor when it fires?<o:p></o:p> Ans: Static constructor are used to initialize the Static members of the class and it fires when the class is used first time(either instance is created or the static members are accessed).<o:p></o:p> What is the difference between remoting & web services?<o:p></o:p> Ans: Remoting is basically used between two .NET Apps. But web services are independent of platform, language because it uses XML and SOAP to communicate. Remoting are more faster then Web Services. Remoting is commonly used in intranet but web services are mostly used on internet.<o:p></o:p> What is Garbage Collection in Net?<o:p></o:p> Ans: GC is used to free all the unused memory resources in our Application at run time. When ever any reference type (object) are created it acquire space on to heap and a pointer on the stack. When it goes out of scope stack pointer is removed but heap is still allocated .GC runs when application goes less in memory and remove all the unreferenced objects from the heap. It works in 3 generations.<o:p></o:p> <o:p> </o:p> Difference between Data Set and Data Adapter?<o:p></o:p> Ans: DataSet is an object which hold the data. Data Adapter is an object which is used to fill the data in dataset. Works as a mediator between Dataset and Connection.<o:p></o:p> What is Reflection in NET?<o:p></o:p> Ans: To read the Metadata of the Assembly at Runtime we use Reflection.<o:p></o:p> <o:p> </o:p> What is the Difference between a Structure and a Class?<o:p></o:p> Ans: Structure are value type (stored on stack) so don�t have destructors, can�t inherit but can implement interfaces. But classes are Reference types( stored on heap) so also have destructors and can inherit.<o:p></o:p> What are Sealed Classes in C#?<o:p></o:p> Ans: The classes which can�t be inherited are called sealed classes. It can only create instances.<o:p></o:p> How to Override a function in C#?<o:p></o:p> Ans: Just define the method with same signature in the derived class It will get override but before that you have to declare that member as virtual in the base class.<o:p></o:p> What is the difference between the Custom Control and the User Control?<o:p></o:p> Ans: Custom control are created by inheriting using Control or Textbox, Datagrid etc�. class. It make a DLL and can be added to the toolbox. We an put it into GAC and share between different Applications. But User Control has .ASCX extension can�t be shared among different application and can�t be added to toolbox.<o:p></o:p> What is Private Constructor and its Use.<o:p></o:p> Ans: Private Constructor is used to make a class Abstract or we can�t create a instance of that class.<o:p></o:p> How does Versioning work in NET?<o:p></o:p> Ans: In .NET all the shared assemblies are stored into GAC and we can have several copy of an assembly with different version. Our application automatically refer to the latest one. Or we can specify the specific version of assembly from our application.<o:p></o:p> Diff between Abstract class and Interface?<o:p></o:p> Ans: Abstract Class can have at least an abstract method but an Interface must have all the method unimplemented (abstract). Means when we implement an interface we need to define all the members of that interface. But in abstract class only abstract methods must be defined rest all can be overridden if necessary. Interfaces can be used for structures also.<o:p></o:p> What is Type Constructor and Instance Constructor (Static Constructor and Instance Constructor)<o:p></o:p> Ans: Static constructor is called only once for a class but Instance constructor is called each time an instance (object) is created. We can use static member into instance constructor but we can�t use non static members into static constructors.<o:p></o:p> Localization concept in c# (CultureInfo & RegionInfo) & Satellite Assembly.<o:p></o:p> Ans: Whenever we compile a project a Satellite Assembly is created which includes the localization details (CultureInfo & RegionInfo). For each different language or culture a different Satellite Assembly is created.<o:p></o:p> <o:p> </o:p> Note: These answers are based on best of my knowledge. Any suggestions and advices are welcome.<o:p></o:p> <o:p> </o:p> <o:p> </o:p> Regards,<o:p></o:p> Anurag Vaishy<o:p></o:p> 09810369206<o:p></o:p> MCAD.NET<o:p></o:p> <o:p> </o:p> <o:p> </o:p> -----Original Message----- From: Adhanoor [mailto:[EMAIL PROTECTED] Sent: <st1:date Month="9" Day="28" Year="2004">Tuesday, September 28, 2004</st1:date> <st1:time Hour="18" Minute="29">6:29 PM</st1:time> To: BDOTNET Subject: Questions (need answers Imm) Most urgent<o:p></o:p> <o:p> </o:p> <o:p></o:p> <o:p></o:p> New Message on BDOTNET<o:p></o:p> <o:p></o:p> <o:p> </o:p> Questions (need answers Imm) Most urgent<o:p></o:p> Reply <o:p></o:p> <o:p></o:p> Reply to Sender Recommend <o:p></o:p> Message 1 in Discussion <o:p></o:p> <o:p></o:p> From: Adhanoor <o:p></o:p> <o:p> </o:p> Hi<o:p></o:p> <o:p></o:p> <o:p></o:p> I got this questions from a UG. pls answer this as I am in need of this answers very immed<o:p></o:p> <o:p></o:p> sorry to write like this<o:p></o:p> <o:p></o:p> <o:p></o:p> What is the namespace used to access the information about the Assembly in C#? what is difference between read only and constant statement? What is static constructor when it fires? What is the difference between remoting & web services What is Garbage Collection in Net? Difference between Data Set and Data Adapter? What is Reflection in .NET?<o:p></o:p> What is the Difference between a Structure and a Class? What are Sealed Classes in C#? How to Override a function in C#? What is the difference between the Custom Control and the User Control? What is Private Constructor and its Use. How does Versioning work in NET? Diff between Abstract and Interface What is Type Constructor and Instance Constructor (Static Constructor and Instance Constructor) Localization concept in c# (CultureInfo & RegionInfo) & Satellite Assembly.<o:p></o:p> <o:p></o:p> <o:p> </o:p> ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
