Integer & struct are value types or reference types
in .NET?

Answers were Sorted based on User's Feedback



Integer & struct are value types or reference types in .NET? ..

Answer / kondapallysantoshkumar

valuetype,becuase they r allocated on stack..

Is This Answer Correct ?    2 Yes 0 No

Integer & struct are value types or reference types in .NET? ..

Answer / prateekbindal

Integer, boolean, struct are value type which are stored on
Stacks and string, arrays are referenced type which are
stored on Heap.

Is This Answer Correct ?    2 Yes 0 No

Integer & struct are value types or reference types in .NET? ..

Answer / rathi

Value types include:
All numeric data types
Boolean, Char, and Date
All structures, even if their members are reference
types
Enumerations, since their underlying type is always
Byte, Short, Integer, or Long
Reference types include:
String
All arrays, even if their elements are value types
Class types, such as Form
Delegates

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

In Server how to check whether model has error or not in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


mention what is csdl, ssdl and msl sections in an edmx file?

0 Answers   Microsoft,


Explain entity lifecycle? : Entity framework

0 Answers  


Explain RenderBody and RenderPage in ASP.Net MVC?

0 Answers  


How do you convert a string into an integer in .NET

1 Answers  


Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why???

6 Answers   3i Infotech,


How to return the JSON from action method in ASP.Net MVC?

0 Answers  


What is difference between Viewbag and Viewdata in ASP.NET MVC?

0 Answers   NA,


What is Dependency Injection in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


What is the meaning of unobtrusive javascript? Explain us by any practical example.

0 Answers  


Hi my name is sahil. i did my bsc in 2008 n did marketing jobs thereafter. bt nw i wanna learn .net to enter IT field. Ive heard deccansoft,secbad is the best inst. for .net. bt do they provide placement?? as im not a fresher so will i be hired by any company..??

1 Answers  


What is meant by bootstrap in mvc5?

0 Answers  


Categories