|
||||||
| C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||
|
The sample code isn't actually checking for null - they're asserting it. An assert only fires under Debug builds (technically, when the DEBUG compiler constant is defined) and displays a message/outputs to any listeners a callstack if the Assert fails. This can aid in debugging.
In Release builds, the assert should fail but will really have no behaivor (because the DEBUG constant is not defined). Note that the Visual C++ and JScript.NET compilers ignore this, and have the same behaivor in both Release and Debug. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Object IO Stream Data Loss Possible? Any solution, pls? | reachpradeep | Java Help | 0 | 03-05-2007 02:02 PM |
| object in session.... "<logic:present>" with JSTL? | reachpradeep | Java Help | 0 | 03-04-2007 08:46 AM |
| Object is Null | Lop | C# Programming | 2 | 09-21-2006 11:25 AM |
| [VB.NET]WebBrowser Object Help | CheeseBurgerMan | Visual Basic Programming | 22 | 08-29-2006 11:04 AM |
| Best way to check if an object is null? | dirkfirst | Managed C++ | 0 | 08-01-2006 07:29 AM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| LogicKills | ........ | 20.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 67%