Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing a Method to a second form Pin
Patrik.karlin9-Jul-09 7:38
Patrik.karlin9-Jul-09 7:38 
GeneralRe: Passing a Method to a second form Pin
DaveyM699-Jul-09 7:46
professionalDaveyM699-Jul-09 7:46 
GeneralRe: Passing a Method to a second form Pin
Patrik.karlin9-Jul-09 8:11
Patrik.karlin9-Jul-09 8:11 
GeneralRe: Passing a Method to a second form Pin
Henry Minute9-Jul-09 9:39
Henry Minute9-Jul-09 9:39 
GeneralRe: Passing a Method to a second form Pin
bwood20209-Jul-09 10:21
bwood20209-Jul-09 10:21 
Question[Message Deleted] Pin
VivekUtsa9-Jul-09 7:05
VivekUtsa9-Jul-09 7:05 
AnswerRe: Browser compatability Issues Pin
Dave Kreskowiak9-Jul-09 7:46
mveDave Kreskowiak9-Jul-09 7:46 
GeneralRe: Browser compatability Issues Pin
Manas Bhardwaj9-Jul-09 8:33
professionalManas Bhardwaj9-Jul-09 8:33 
QuestionHow do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Vengeful Emus9-Jul-09 6:56
Vengeful Emus9-Jul-09 6:56 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 7:20
harold aptroot9-Jul-09 7:20 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Vengeful Emus9-Jul-09 7:38
Vengeful Emus9-Jul-09 7:38 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified*2] Pin
harold aptroot9-Jul-09 7:44
harold aptroot9-Jul-09 7:44 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified*2] Pin
Dave Kreskowiak9-Jul-09 10:31
mveDave Kreskowiak9-Jul-09 10:31 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 10:39
harold aptroot9-Jul-09 10:39 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" [modified] Pin
Dave Kreskowiak9-Jul-09 7:51
mveDave Kreskowiak9-Jul-09 7:51 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
harold aptroot9-Jul-09 8:05
harold aptroot9-Jul-09 8:05 
GeneralRe: How do I retreive and interface's IP Address(es) when starting only with "Friendly Adapter Name" Pin
Luc Pattyn9-Jul-09 9:20
sitebuilderLuc Pattyn9-Jul-09 9:20 
Questionsearch for nearby wifi networks Pin
Vivek Vijayan9-Jul-09 6:54
Vivek Vijayan9-Jul-09 6:54 
AnswerRe: search for nearby wifi networks Pin
Vasudevan Deepak Kumar10-Jul-09 2:26
Vasudevan Deepak Kumar10-Jul-09 2:26 
Questionlist all wi-fi network connections Pin
Vivek Vijayan9-Jul-09 6:40
Vivek Vijayan9-Jul-09 6:40 
AnswerRe: list all wi-fi network connections Pin
Blue_Boy9-Jul-09 6:55
Blue_Boy9-Jul-09 6:55 
GeneralRe: list all wi-fi network connections Pin
Mycroft Holmes9-Jul-09 11:52
professionalMycroft Holmes9-Jul-09 11:52 
GeneralRe: list all wi-fi network connections Pin
Blue_Boy9-Jul-09 13:16
Blue_Boy9-Jul-09 13:16 
GeneralRe: list all wi-fi network connections Pin
Vasudevan Deepak Kumar10-Jul-09 2:26
Vasudevan Deepak Kumar10-Jul-09 2:26 
Questionown == Operator and null Problem [solved] Pin
chrisx519-Jul-09 6:34
chrisx519-Jul-09 6:34 
Hallo Board,
I am facing a problem with a self-written Equal Operator on a list<> class with own classes inside the list.
I want to compare lists thus I redefined the == Operator:
public override bool Equals(object obj)<br />
{<br />
UserList compUserList = (UserList)obj;<br />
foreach (PersonDataSet user in compUserList.list)<br />
{<br />
.... //unimportend internal checks;if all users are the same I want to return true<br />
return true;<br />
}<br />
return false;<br />
}<br />


The problem is now that I checked in my code before writing the own operator if a special UserList has already been created by
if (testUserList != null)
.
Now I get a NullPointer exception wenn testing for 'null'.
This is understandable, but does anyone have an idea how to solve the problem? Maybe a different check to test if an object has been created? Or is a check like this not good at all?

Thanks for your replies!

Regards
Chris

modified on Monday, July 13, 2009 5:32 AM

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.