null pointer : null : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » null »

 

null pointer








    
 
using System;

public class MainClass {
    public static void Main(string[] args) {
        MyObject localObject = new MyObject();

        Console.WriteLine("localObject.n is {0}", localObject.n);

        if (localObject.nextObject == null) {
            Console.WriteLine("localObject.nextObject is null");
        }

    }

    public class MyObject {
        internal int n;
        internal MyObject nextObject;
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» null