Speeple News Search

Sign Up! | Tags | Domains | Statistics | Options | Advanced Search

How does the .NET CF handle null reference

msdn.com » 2008 » July » 4th » How does the .NET CF handle null reference

Tagged: tech

What happens when we have code as bellow class B { public virtual void Virt(){ Console.WriteLine("Base::Virt"); } } class Program { static void Main(string[] args){ B b = null; b.Virt(); // throws System.NullReferenceException } } Obviously we have a null reference exception being thrown. If you see the IL the call looks like L_0000: nop L_0001: ldnull L_0002: stloc.0 L_0003: ldloc.0 L_0004 Continue Reading »


Latest news from I know the answer (it's 42):

  1. Obsession with desktop continues
  2. String equality
  3. Do namespace using directives affect Assembly Loading?
  4. Auto generating Code Review Email for TFS
  5. C# generates virtual calls to non-virtual methods as well

Latest news from msdn.com:

  1. Walkthroughs: Using VSTS Test and Profilers to Find Performance Issues
  2. New Job, New Blog
  3. CodeMash 2008 から私のオープン ソース ポッドキャストを利用できます
  4. Editing Data from Two Tables in a Single DataGridView
  5. faça o download já: Deep Zoom Composer novo