Click here to Skip to main content
15,889,597 members
Home / Discussions / C#
   

C#

 
AnswerRe: using (SqlTransaction... ) Pin
PSK_29-Mar-10 1:08
PSK_29-Mar-10 1:08 
GeneralRe: using (SqlTransaction... ) Pin
Dewald29-Mar-10 1:51
Dewald29-Mar-10 1:51 
GeneralRe: using (SqlTransaction... ) Pin
PSK_29-Mar-10 3:06
PSK_29-Mar-10 3:06 
GeneralRe: using (SqlTransaction... ) Pin
Dewald29-Mar-10 3:33
Dewald29-Mar-10 3:33 
AnswerRe: using (SqlTransaction... ) Pin
PIEBALDconsult29-Mar-10 4:14
mvePIEBALDconsult29-Mar-10 4:14 
GeneralRe: using (SqlTransaction... ) Pin
Dewald29-Mar-10 21:27
Dewald29-Mar-10 21:27 
GeneralRe: using (SqlTransaction... ) Pin
PIEBALDconsult30-Mar-10 4:27
mvePIEBALDconsult30-Mar-10 4:27 
QuestionHow does CLR differentiates between value and reference types Pin
Praveen Raghuvanshi28-Mar-10 23:00
professionalPraveen Raghuvanshi28-Mar-10 23:00 
Hi,

Basic question to ask.
we know everything in .Net is derived from System.Object, even value and reference types.
So, how does CLR differentiate between the two and stores the value type on Stack and reference types on Heap?

In continuation to above, I have another query

we have a value type as

int age = 35;


and we have a class which contains both the value types and reference types as shown below

Class Company
{
	int employeeCount = 3000;
	Employee emp;

	Public Company(Employee emp)
	{
		this.emp = emp;
	}
}


and we created the object of Company class as shown below

Company cmpny = new Company(emp);


Question is where does the employeeCount will get stored(Stack or Heap) and Where does the cmpny gets stored?


Thanks in advance,
Praveen Raghuvanshi
Software Engineer,

India.

AnswerRe: How does CLR differentiates between value and reference types Pin
PSK_28-Mar-10 23:52
PSK_28-Mar-10 23:52 
AnswerRe: How does CLR differentiates between value and reference types Pin
Keith Barrow29-Mar-10 0:06
professionalKeith Barrow29-Mar-10 0:06 
GeneralRe: How does CLR differentiates between value and reference types Pin
Praveen Raghuvanshi29-Mar-10 1:39
professionalPraveen Raghuvanshi29-Mar-10 1:39 
AnswerRe: How does CLR differentiates between value and reference types Pin
Gideon Engelberth29-Mar-10 2:55
Gideon Engelberth29-Mar-10 2:55 
AnswerRe: How does CLR differentiates between value and reference types Pin
PIEBALDconsult29-Mar-10 4:17
mvePIEBALDconsult29-Mar-10 4:17 
AnswerRe: How does CLR differentiates between value and reference types Pin
harold aptroot29-Mar-10 5:07
harold aptroot29-Mar-10 5:07 
AnswerRe: How does CLR differentiates between value and reference types Pin
Tej Aj29-Mar-10 5:25
Tej Aj29-Mar-10 5:25 
GeneralRe: How does CLR differentiates between value and reference types Pin
Praveen Raghuvanshi29-Mar-10 19:34
professionalPraveen Raghuvanshi29-Mar-10 19:34 
GeneralRe: How does CLR differentiates between value and reference types Pin
Tej Aj31-Mar-10 1:18
Tej Aj31-Mar-10 1:18 
QuestionPassing Values from a textbox in a form to a SQL Stored Procedure Pin
valkerieforever28-Mar-10 23:00
valkerieforever28-Mar-10 23:00 
AnswerRe: Passing Values from a textbox in a form to a SQL Stored Procedure Pin
R. Giskard Reventlov28-Mar-10 23:43
R. Giskard Reventlov28-Mar-10 23:43 
Questionworking on treeview Pin
thirdy3328-Mar-10 22:24
thirdy3328-Mar-10 22:24 
AnswerRe: working on treeview [modified] Pin
mrcooll28-Mar-10 22:33
mrcooll28-Mar-10 22:33 
AnswerRe: working on treeview Pin
Praveen Raghuvanshi28-Mar-10 22:41
professionalPraveen Raghuvanshi28-Mar-10 22:41 
QuestionWriting C# Code when working with MS Access 2007-2010 Pin
Said Ali Jalali28-Mar-10 21:51
Said Ali Jalali28-Mar-10 21:51 
AnswerRe: Writing C# Code when working with MS Access 2007-2010 Pin
R. Giskard Reventlov28-Mar-10 22:34
R. Giskard Reventlov28-Mar-10 22:34 
AnswerRe: Writing C# Code when working with MS Access 2007-2010 Pin
Dave Kreskowiak29-Mar-10 3:38
mveDave Kreskowiak29-Mar-10 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.