Click here to Skip to main content
15,909,566 members
Home / Discussions / C#
   

C#

 
AnswerRe: Copy/Paste Problem Pin
ventomito2-Jun-06 22:05
ventomito2-Jun-06 22:05 
QuestionObjectarx with c# Pin
Aslam Bari2-Jun-06 20:00
Aslam Bari2-Jun-06 20:00 
QuestionAcces to a mapped network drive. Pin
Stephen_Mc2-Jun-06 19:34
Stephen_Mc2-Jun-06 19:34 
AnswerRe: Acces to a mapped network drive. Pin
Stephan Samuel3-Jun-06 4:03
Stephan Samuel3-Jun-06 4:03 
Questionhow can we run a program pernemently on our desktop? Pin
abiisalwayshappy2-Jun-06 18:14
abiisalwayshappy2-Jun-06 18:14 
AnswerRe: how can we run a program pernemently on our desktop? Pin
Stephen_Mc2-Jun-06 19:36
Stephen_Mc2-Jun-06 19:36 
AnswerRe: how can we run a program pernemently on our desktop? Pin
malikjhangirahmed@hotmail.com2-Jun-06 21:37
malikjhangirahmed@hotmail.com2-Jun-06 21:37 
Questionlearning C# - new operator - arrays Pin
venkat4562-Jun-06 16:46
venkat4562-Jun-06 16:46 
Hi ,
I came across a problem while i was learning C#-

public class MyClass
{
int n;

}


public struct MyStruct
{
int n;
}

SomeMethod()
{
MyClass[] xClass = new MyClass[3]; //- Statement 1
MyStruct[] xStruct = new MyStruct[3]; //- Statement 2
}

Statement 1 - causes an array of 3 references all referencing null to be created.
Statement 2 - causes an array of 3 MyStructs to be created and also intialized. n is also initialized to 0

Why is there a discrepancy in behavior? Does C# support any syntax that would allow me to call MyClass constructor thrice (no statics) in one go? It's just curiosity, I'm not sure if there is any benefit in doing it this way..


Regards,




AnswerRe: learning C# - new operator - arrays Pin
leppie2-Jun-06 20:50
leppie2-Jun-06 20:50 
GeneralRe: learning C# - new operator - Generics - arrays Pin
venkat4563-Jun-06 3:43
venkat4563-Jun-06 3:43 
GeneralRe: learning C# - new operator - Generics - arrays Pin
S. Senthil Kumar4-Jun-06 20:49
S. Senthil Kumar4-Jun-06 20:49 
Questionc# userControl problem Pin
xxxpt2-Jun-06 15:28
xxxpt2-Jun-06 15:28 
QuestionProblem figuring out DataGridView Pin
PyroManiak2-Jun-06 13:34
PyroManiak2-Jun-06 13:34 
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:36
kjosh2-Jun-06 16:36 
AnswerRe: Problem figuring out DataGridView Pin
kjosh2-Jun-06 16:41
kjosh2-Jun-06 16:41 
Questionwant to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 10:59
Rizwan Rathore2-Jun-06 10:59 
AnswerRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 11:09
lmoelleb2-Jun-06 11:09 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
Rizwan Rathore2-Jun-06 11:29
Rizwan Rathore2-Jun-06 11:29 
GeneralRe: want to know the index of ArrayList during BinarySearch Pin
lmoelleb2-Jun-06 21:57
lmoelleb2-Jun-06 21:57 
QuestionSave Image from web browser Pin
Achuzan2-Jun-06 10:42
Achuzan2-Jun-06 10:42 
AnswerRe: Save Image from web browser Pin
Stephan Samuel2-Jun-06 11:45
Stephan Samuel2-Jun-06 11:45 
AnswerRe: Save Image from web browser Pin
Ed.Poore2-Jun-06 13:51
Ed.Poore2-Jun-06 13:51 
QuestionMonitor Bandwidth Usage Pin
Darren_2-Jun-06 10:28
Darren_2-Jun-06 10:28 
AnswerRe: Monitor Bandwidth Usage Pin
Stephan Samuel2-Jun-06 10:38
Stephan Samuel2-Jun-06 10:38 
GeneralRe: Monitor Bandwidth Usage Pin
Darren_2-Jun-06 10:45
Darren_2-Jun-06 10:45 

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.