Click here to Skip to main content
15,843,149 members
Home / Discussions / C#
   

C#

 
AnswerRe: VS2010 solution file cleaning Pin
Wes Aday23-Sep-12 0:45
professionalWes Aday23-Sep-12 0:45 
QuestionGetting Data from Methods of Type Void Pin
ASPnoob22-Sep-12 21:01
ASPnoob22-Sep-12 21:01 
AnswerRe: Getting Data from Methods of Type Void Pin
Pete O'Hanlon22-Sep-12 22:21
subeditorPete O'Hanlon22-Sep-12 22:21 
AnswerRe: Getting Data from Methods of Type Void Pin
Dave Kreskowiak23-Sep-12 5:30
mveDave Kreskowiak23-Sep-12 5:30 
QuestionGetting Data from methods of Type Void Pin
ASPnoob22-Sep-12 21:00
ASPnoob22-Sep-12 21:00 
QuestionC# pass variable to console application Pin
classy_dog22-Sep-12 11:48
classy_dog22-Sep-12 11:48 
AnswerRe: C# pass variable to console application Pin
Wes Aday22-Sep-12 13:42
professionalWes Aday22-Sep-12 13:42 
QuestionHow to Use Array As Value Type Pin
mohammadkaab22-Sep-12 10:11
mohammadkaab22-Sep-12 10:11 
hi guys , im wondering if there are any soluation for my qustion .

i have two 2D array here , first and second array are defined like this

C#
int [,] MyfirstArray = {{0,3,2},{4,1,5},{6,7,8}};

int [,] MySecondArray = new int[3,3];
MySecondArray = MyfirstArray;


what do i want to do its just to exchange the value of 2 block of the second array . Take alook

C#
int NewValue = 0;
int Old Value = 0;
                NewValue = MySecondArray[1,0];
                OldValue = MySecondArray[0,0];
                MySecondArray[0,0] = NewValue;
                MySecondArray[1,0] = OldValue;


and i know that array is ref type but i dont know why after im doing this , both of the arrays value are changed .

the result is like this . MyfirstArray = {{4,3,2},{0,1,5},{6,7,8}};
MySecondArray = {{4,3,2},{0,1,5},{6,7,8}};

but i dont want this effect on the first array . and maybe you wondering why im using 2 array , just guess i need the first array and i cant remove or not use it . ty for any help .
AnswerRe: How to Use Array As Value Type Pin
Dave Kreskowiak22-Sep-12 10:19
mveDave Kreskowiak22-Sep-12 10:19 
GeneralRe: How to Use Array As Value Type Pin
mohammadkaab22-Sep-12 11:24
mohammadkaab22-Sep-12 11:24 
GeneralRe: How to Use Array As Value Type Pin
Wes Aday22-Sep-12 11:42
professionalWes Aday22-Sep-12 11:42 
GeneralRe: How to Use Array As Value Type Pin
Dave Kreskowiak22-Sep-12 14:15
mveDave Kreskowiak22-Sep-12 14:15 
QuestionCreate Instance or invoke members of a class from a loaded assembly Pin
Danzy8322-Sep-12 2:57
Danzy8322-Sep-12 2:57 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
Eddy Vluggen22-Sep-12 3:54
professionalEddy Vluggen22-Sep-12 3:54 
GeneralRe: Create Instance or invoke members of a class from a loaded assembly Pin
Danzy8322-Sep-12 5:18
Danzy8322-Sep-12 5:18 
GeneralRe: Create Instance or invoke members of a class from a loaded assembly Pin
Eddy Vluggen22-Sep-12 6:01
professionalEddy Vluggen22-Sep-12 6:01 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
jschell22-Sep-12 9:44
jschell22-Sep-12 9:44 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
BobJanova24-Sep-12 1:52
BobJanova24-Sep-12 1:52 
QuestionC# Application With MS Access Pin
SUBODH.SB22-Sep-12 0:39
SUBODH.SB22-Sep-12 0:39 
AnswerRe: C# Application With MS Access Pin
Eddy Vluggen22-Sep-12 3:56
professionalEddy Vluggen22-Sep-12 3:56 
AnswerRe: C# Application With MS Access Pin
Smart Arab23-Sep-12 11:39
Smart Arab23-Sep-12 11:39 
QuestionC# linq problem Pin
classy_dog21-Sep-12 12:38
classy_dog21-Sep-12 12:38 
AnswerRe: C# linq problem Pin
Matt T Heffron21-Sep-12 14:18
professionalMatt T Heffron21-Sep-12 14:18 
Questionputting VS projects/solutions in a TFS team project Pin
chuckdawit21-Sep-12 8:58
chuckdawit21-Sep-12 8:58 
AnswerRe: putting VS projects/solutions in a TFS team project Pin
Emmanuel Medina21-Sep-12 12:30
professionalEmmanuel Medina21-Sep-12 12:30 

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.