Click here to Skip to main content
15,300,160 members
Home / Discussions / C#
   

C#

 
AnswerRe: VS2010 solution file cleaning Pin
Wes Aday22-Sep-12 23:45
professionalWes Aday22-Sep-12 23:45 
QuestionGetting Data from Methods of Type Void Pin
ASPnoob22-Sep-12 20:01
MemberASPnoob22-Sep-12 20:01 
AnswerRe: Getting Data from Methods of Type Void Pin
Pete O'Hanlon22-Sep-12 21:21
mvaPete O'Hanlon22-Sep-12 21:21 
AnswerRe: Getting Data from Methods of Type Void Pin
Dave Kreskowiak23-Sep-12 4:30
mveDave Kreskowiak23-Sep-12 4:30 
QuestionGetting Data from methods of Type Void Pin
ASPnoob22-Sep-12 20:00
MemberASPnoob22-Sep-12 20:00 
QuestionC# pass variable to console application Pin
classy_dog22-Sep-12 10:48
Memberclassy_dog22-Sep-12 10:48 
AnswerRe: C# pass variable to console application Pin
Wes Aday22-Sep-12 12:42
professionalWes Aday22-Sep-12 12:42 
QuestionHow to Use Array As Value Type Pin
mohammadkaab22-Sep-12 9:11
Membermohammadkaab22-Sep-12 9: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 9:19
mveDave Kreskowiak22-Sep-12 9:19 
GeneralRe: How to Use Array As Value Type Pin
mohammadkaab22-Sep-12 10:24
Membermohammadkaab22-Sep-12 10:24 
GeneralRe: How to Use Array As Value Type Pin
Wes Aday22-Sep-12 10:42
professionalWes Aday22-Sep-12 10:42 
GeneralRe: How to Use Array As Value Type PinPopular
Dave Kreskowiak22-Sep-12 13:15
mveDave Kreskowiak22-Sep-12 13:15 
QuestionCreate Instance or invoke members of a class from a loaded assembly Pin
Danzy8322-Sep-12 1:57
MemberDanzy8322-Sep-12 1:57 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
Eddy Vluggen22-Sep-12 2:54
professionalEddy Vluggen22-Sep-12 2:54 
GeneralRe: Create Instance or invoke members of a class from a loaded assembly Pin
Danzy8322-Sep-12 4:18
MemberDanzy8322-Sep-12 4:18 
GeneralRe: Create Instance or invoke members of a class from a loaded assembly Pin
Eddy Vluggen22-Sep-12 5:01
professionalEddy Vluggen22-Sep-12 5:01 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
jschell22-Sep-12 8:44
Memberjschell22-Sep-12 8:44 
AnswerRe: Create Instance or invoke members of a class from a loaded assembly Pin
BobJanova24-Sep-12 0:52
MemberBobJanova24-Sep-12 0:52 
QuestionC# Application With MS Access Pin
SUBODH.SB21-Sep-12 23:39
MemberSUBODH.SB21-Sep-12 23:39 
AnswerRe: C# Application With MS Access Pin
Eddy Vluggen22-Sep-12 2:56
professionalEddy Vluggen22-Sep-12 2:56 
AnswerRe: C# Application With MS Access Pin
Smart Arab23-Sep-12 10:39
MemberSmart Arab23-Sep-12 10:39 
QuestionC# linq problem Pin
classy_dog21-Sep-12 11:38
Memberclassy_dog21-Sep-12 11:38 
AnswerRe: C# linq problem Pin
Matt T Heffron21-Sep-12 13:18
professionalMatt T Heffron21-Sep-12 13:18 
Questionputting VS projects/solutions in a TFS team project Pin
chuckdawit21-Sep-12 7:58
Memberchuckdawit21-Sep-12 7:58 
AnswerRe: putting VS projects/solutions in a TFS team project Pin
Emmanuel Medina21-Sep-12 11:30
professionalEmmanuel Medina21-Sep-12 11: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.