Click here to Skip to main content
15,890,043 members
Home / Discussions / C#
   

C#

 
QuestionChecking if any items in a listbox are selected Pin
Lucy13-Sep-07 3:33
Lucy13-Sep-07 3:33 
AnswerRe: Checking if any items in a listbox are selected Pin
Luc Pattyn13-Sep-07 4:03
sitebuilderLuc Pattyn13-Sep-07 4:03 
GeneralRe: Checking if any items in a listbox are selected Pin
Lucy13-Sep-07 4:23
Lucy13-Sep-07 4:23 
GeneralRe: Checking if any items in a listbox are selected Pin
alisardar13-Sep-07 10:03
alisardar13-Sep-07 10:03 
AnswerRe: Checking if any items in a listbox are selected Pin
led mike13-Sep-07 4:28
led mike13-Sep-07 4:28 
GeneralRe: Checking if any items in a listbox are selected Pin
Lucy13-Sep-07 4:42
Lucy13-Sep-07 4:42 
GeneralRe: Checking if any items in a listbox are selected Pin
led mike13-Sep-07 7:38
led mike13-Sep-07 7:38 
QuestionMemory Usage Pin
student_rhr13-Sep-07 3:21
student_rhr13-Sep-07 3:21 
Ok so I am confused.

What happends memory wise when I pass an instance of a class as a method parameter, for e.g.:

public class ClassA
{
// other junk
}
public class ClassB
{
  // other junk

  public string GetClassName(ClassA classA)
  {
    classA.OtherMethodClass();
    return classA.ToString();
  }
}
public class ClassC
{
// other junk
  ClassA a = new ClassA();
  // set a's properties
  ClassB b = new ClassB();
  string x = b.GetClassName(a);
  Console.WriteLine(x);
}

Now does a new object get created in memory when I pass the class instance? Or would any changes made to the method parameter would also effect the actual object? Just need some clarification.

Thanks for your help.
AnswerRe: Memory Usage Pin
Guffa13-Sep-07 3:28
Guffa13-Sep-07 3:28 
GeneralRe: Memory Usage Pin
student_rhr13-Sep-07 4:12
student_rhr13-Sep-07 4:12 
GeneralRe: Memory Usage Pin
Lutosław13-Sep-07 4:53
Lutosław13-Sep-07 4:53 
AnswerRe: Memory Usage Pin
Urs Enzler13-Sep-07 3:57
Urs Enzler13-Sep-07 3:57 
AnswerRe: Memory Usage Pin
Judah Gabriel Himango13-Sep-07 9:47
sponsorJudah Gabriel Himango13-Sep-07 9:47 
QuestionReversible Cipher Question Pin
paas13-Sep-07 3:20
paas13-Sep-07 3:20 
AnswerRe: Reversible Cipher Question Pin
Colin Angus Mackay13-Sep-07 3:28
Colin Angus Mackay13-Sep-07 3:28 
AnswerRe: Reversible Cipher Question Pin
Dan Neely13-Sep-07 3:58
Dan Neely13-Sep-07 3:58 
GeneralRe: Reversible Cipher Question Pin
paas13-Sep-07 4:24
paas13-Sep-07 4:24 
GeneralRe: Reversible Cipher Question Pin
Mark Churchill13-Sep-07 15:29
Mark Churchill13-Sep-07 15:29 
AnswerRe: Reversible Cipher Question Pin
Luc Pattyn13-Sep-07 4:07
sitebuilderLuc Pattyn13-Sep-07 4:07 
GeneralRe: Reversible Cipher Question Pin
Dan Neely13-Sep-07 4:42
Dan Neely13-Sep-07 4:42 
QuestionWhat is the best way of security that ensure that my application be authorised to the only pruchaser? Pin
Yasser Abu Elmakarem13-Sep-07 3:17
Yasser Abu Elmakarem13-Sep-07 3:17 
AnswerRe: What is the best way of security that ensure that my application be authorised to the only pruchaser? Pin
Luc Pattyn13-Sep-07 4:12
sitebuilderLuc Pattyn13-Sep-07 4:12 
QuestionHow to open my application without installing dot net framework? Pin
Yasser Abu Elmakarem13-Sep-07 3:07
Yasser Abu Elmakarem13-Sep-07 3:07 
AnswerRe: How to open my application without installing dot net framework? Pin
Pete O'Hanlon13-Sep-07 3:10
mvePete O'Hanlon13-Sep-07 3:10 
Questiontextbox help Pin
KppsK13-Sep-07 2:42
KppsK13-Sep-07 2:42 

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.