Click here to Skip to main content
15,898,990 members
Home / Discussions / C#
   

C#

 
GeneralRemoting with Events Pin
Wouter Van Ranst30-May-04 7:20
Wouter Van Ranst30-May-04 7:20 
GeneralRe: Remoting with Events Pin
Wackatronic1-Jun-04 10:08
Wackatronic1-Jun-04 10:08 
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 
MrJJKoolJ wrote:
I need to test if an Array object is empty. What's the best way to do this?

Do you mean contains no elements, or that all the elements are null?

The Length property will tell you how many elements are in an array.

If you mean the second option then you would have to iterate over the array testing for null on each element.

MrJJKoolJ wrote:
Also how do you determine if an object exists?

I don't understand this at all. If an object exists you will have a reference to it somewhere. Although, sometime objects will exist that you don't have a reference to anymore and by that time it is too late because the garbage collector will be clearing it out soon anyway.


"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
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 
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 

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.