Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setup & dependency error for officectrl.ocx Pin
Saksida Bojan24-Aug-09 9:15
Saksida Bojan24-Aug-09 9:15 
QuestionCalling Form Buttonclick event from another file Pin
RS.Ratheesh24-Aug-09 6:41
RS.Ratheesh24-Aug-09 6:41 
AnswerRe: Calling Form Buttonclick event from another file Pin
Luc Pattyn24-Aug-09 6:52
sitebuilderLuc Pattyn24-Aug-09 6:52 
QuestionVirtual and Override problem Pin
bonzaiholding24-Aug-09 5:17
bonzaiholding24-Aug-09 5:17 
GeneralRe: Virtual and Override problem Pin
harold aptroot24-Aug-09 5:22
harold aptroot24-Aug-09 5:22 
AnswerRe: Virtual and Override problem Pin
Luc Pattyn24-Aug-09 5:47
sitebuilderLuc Pattyn24-Aug-09 5:47 
Questionint x = new int() where this will be stored ?? Pin
jpk42024-Aug-09 4:28
jpk42024-Aug-09 4:28 
AnswerRe: int x = new int() where this will be stored ?? PinPopular
Luc Pattyn24-Aug-09 4:58
sitebuilderLuc Pattyn24-Aug-09 4:58 
Hi,

MSDN says "The new operator is also used to invoke the default constructor for value types."

Inside a method:
int x; allocates an int on stack and does not initialize it.
int x=5; allocates an int on stack and sets it to 5;
int x=new int(); allocates an int on stack and sets it to 0;
and int x=new int(5); does not compile.

new allocates on a heap for reference types only.

It suffices to read a book, to read MSDN, or to search (google) for such information.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: int x = new int() where this will be stored ?? Pin
Richard MacCutchan25-Aug-09 9:41
mveRichard MacCutchan25-Aug-09 9:41 
GeneralRe: int x = new int() where this will be stored ?? Pin
Luc Pattyn25-Aug-09 15:30
sitebuilderLuc Pattyn25-Aug-09 15:30 
GeneralRe: int x = new int() where this will be stored ?? Pin
Richard MacCutchan26-Aug-09 3:19
mveRichard MacCutchan26-Aug-09 3:19 
QuestionHow to embaded rss feeds in to html page which will be displayed in mozilla as well as IE browser Pin
biswa4724-Aug-09 3:52
biswa4724-Aug-09 3:52 
AnswerRe: How to embaded rss feeds in to html page which will be displayed in mozilla as well as IE browser Pin
Nagy Vilmos24-Aug-09 4:35
professionalNagy Vilmos24-Aug-09 4:35 
Questionemgucv face detection Count Pin
ChangSiJie24-Aug-09 3:28
ChangSiJie24-Aug-09 3:28 
AnswerRe: emgucv face detection Count PinPopular
Henry Minute24-Aug-09 3:40
Henry Minute24-Aug-09 3:40 
AnswerRe: emgucv face detection Count Pin
sheahpar8-Feb-10 6:17
sheahpar8-Feb-10 6:17 
QuestionConvert SQL data to XML data using nHibernate Pin
DJ24524-Aug-09 2:56
DJ24524-Aug-09 2:56 
AnswerRe: Convert SQL data to XML data using nHibernate Pin
Henry Minute24-Aug-09 3:25
Henry Minute24-Aug-09 3:25 
QuestionExcel + C# Pin
GrgBalden24-Aug-09 2:16
GrgBalden24-Aug-09 2:16 
QuestionWorkbookEvents_SheetChangeEventHandler excel delegate Pin
NarVish24-Aug-09 2:16
NarVish24-Aug-09 2:16 
QuestionCollection properties should be readonly. Pin
deep724-Aug-09 1:47
deep724-Aug-09 1:47 
AnswerRe: Collection properties should be readonly. Pin
Henry Minute24-Aug-09 2:07
Henry Minute24-Aug-09 2:07 
GeneralRe: Collection properties should be readonly. Pin
Luc Pattyn24-Aug-09 3:26
sitebuilderLuc Pattyn24-Aug-09 3:26 
AnswerRe: Collection properties should be readonly. Pin
harold aptroot24-Aug-09 2:08
harold aptroot24-Aug-09 2:08 
GeneralRe: Collection properties should be readonly. Pin
Luc Pattyn24-Aug-09 3:27
sitebuilderLuc Pattyn24-Aug-09 3:27 

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.