Click here to Skip to main content
16,004,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remoting with Events Pin
Wouter Van Ranst1-Jun-04 10:15
Wouter Van Ranst1-Jun-04 10:15 
GeneralRe: Remoting with Events Pin
Wackatronic1-Jun-04 10:18
Wackatronic1-Jun-04 10:18 
GeneralDataset Merge Pin
MrJJKoolJ30-May-04 6:59
MrJJKoolJ30-May-04 6:59 
GeneralRe: Dataset Merge Pin
Wouter Van Ranst30-May-04 7:31
Wouter Van Ranst30-May-04 7:31 
GeneralArray object Empty Pin
MrJJKoolJ30-May-04 6:02
MrJJKoolJ30-May-04 6:02 
GeneralRe: Array object Empty Pin
Colin Angus Mackay30-May-04 11:40
Colin Angus Mackay30-May-04 11:40 
GeneralRe: Array object Empty Pin
MrJJKoolJ31-May-04 3:06
MrJJKoolJ31-May-04 3:06 
GeneralRe: Array object Empty Pin
Colin Angus Mackay31-May-04 4:16
Colin Angus Mackay31-May-04 4:16 
MrJJKoolJ wrote:
Also How do you test if all the elements are null?

bool allNull = true;
foreach(object element in myArray)
{
    if (element != null)
    {
        allNull=false;
        break;
    }
}


At the end of this code snippit, allNull will be true if all the elements of the array are null. It will also be true if the array is of zero length (so you might need to test for that condition also)

MrJJKoolJ wrote:
On the object question, I need to know how to test if an object exists for a reference

Okay, a bit of confused terminology here. You want to tell if a "variable" references an object or not. For that, it looks like Otis_69 responded with the correct answer for that.

Does this help?




"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

The Second EuroCPian Event will be in Brussels on the 4th of September

Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!


GeneralRe: Array object Empty Pin
Otis_6930-May-04 15:15
Otis_6930-May-04 15:15 
GeneralRe: Array object Empty Pin
MrJJKoolJ31-May-04 3:08
MrJJKoolJ31-May-04 3:08 
GeneralRe: Array object Empty Pin
Otis_6931-May-04 9:40
Otis_6931-May-04 9:40 
GeneralRe: Array object Empty Pin
Stefan Troschuetz30-May-04 22:35
Stefan Troschuetz30-May-04 22:35 
Generalforce an event to trigger Pin
YiannisF30-May-04 4:23
YiannisF30-May-04 4:23 
GeneralRe: force an event to trigger Pin
Mazdak30-May-04 4:31
Mazdak30-May-04 4:31 
GeneralRe: force an event to trigger Pin
YiannisF30-May-04 7:09
YiannisF30-May-04 7:09 
GeneralC# and ADO.NET data caching Pin
ajenny30-May-04 3:47
ajenny30-May-04 3:47 
QuestionAbout draw a rectangle? Pin
Member 185560830-May-04 0:20
Member 185560830-May-04 0:20 
AnswerRe: About draw a rectangle? Pin
Aaron Eldreth30-May-04 2:08
Aaron Eldreth30-May-04 2:08 
GeneralClosing External Window Pin
cgcrute29-May-04 23:35
cgcrute29-May-04 23:35 
GeneralRe: Closing External Window Pin
Xiangyang Liu 刘向阳30-May-04 2:00
Xiangyang Liu 刘向阳30-May-04 2:00 
GeneralRe: Closing External Window Pin
Dave Kreskowiak30-May-04 3:13
mveDave Kreskowiak30-May-04 3:13 
GeneralHelp me please ! Pin
Vo Tan Tai29-May-04 18:28
Vo Tan Tai29-May-04 18:28 
GeneralRe: Help me please ! Pin
Mazdak29-May-04 20:21
Mazdak29-May-04 20:21 
GeneralRe: ListBox Pin
myNameIsRon29-May-04 16:35
myNameIsRon29-May-04 16:35 
GeneralRe: ListBox Pin
Meysam Mahfouzi29-May-04 16:55
Meysam Mahfouzi29-May-04 16:55 

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.