What is boxing and unboxing ?
Answer Posted / rahultripathi
There is two type datatype available Value and reference
type . value are stored in stack and reference type used
in heap . when we copy data from stack memmory to heap it
call Boxing .
Int32 x = 10; object o = x ; // Implicit
boxing
Int32 y = 10;
unboxing : copy data from heap memory to stack called
unboxing
object obj = (object) y; // Explicit Boxing
Rahul Tripathi
raultripathi@myway.com
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What are the security types in ASP/ASP.NET? Different Authentication modes?
Explain the differences between managed and unmanaged code?
What is difference between view and partial view?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
Mention the execution process for managed code?
Explain about asp.net state management?
How many web config files can be created for an application?
Distinguish between Server-side and Client-side code?
How long the items in ViewState exists?
What are the main requirements for caching?
List the types of authentication supported by asp.net?
Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal
Explain diff. Between friend and protected friend?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?