votes
votes
garbage collection
[code]using System; class MyClass { int a, b; // private // Create a class factory for MyClass. public MyClass Factory(int i, int j) { MyClass t = new MyClass(); t.a = i; t.b = j; [b]retu ...
votes
Little bit of help
Hi I'm currently writing a piece of code for algorithms. My problem is though that I can't get the code to reference the .txt file, how would I do this? Also, when I try debugging it it comes up with the message saying that a project with a ...
votes
Double LinkedList trouble, object won't copy by value! Help.
Hello, I read an article on double linked lists on your previous site: http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=176 I implemented my version of the LinkedList. Even though C# has an excellent LinkedList class, ...
votes
NullReferenceException was unhandled
Hi could somebody please help me with this as it is driving me nuts for hours!!! I keep receving the "NullReferenceException was unhandled " in the bold line: public static Conditions GetCurrentConditions(string location) { ...
votes
Getting A Reference To Another Object Outside The Current Scope
I've got a problem and I don't know what jargon would accurately describe it so I'll just put it out there... [code] public class MyClass { public List<Device> Devices; public Library GlobalLibrary; ...
votes
Why i cannot access members throught reference?
Hi friend, here i have written a sample code for the client to access a class members in the BLL through another class: [code] namespace WindowsFormsApplication18 { public partial class Form1 : Form { A ...
votes
Pass By Reference
I created a method which accepts a parameter of type List<T>. The method then does some operations which fill this list. Single stepping in debug I can see that it does this correctly. However, when it returns from the method all the ...
