Working with Nested Types - CSharp Custom Type

CSharp examples for Custom Type:Inner Type

Introduction

The code for the nested Point type is as follows:

class Line
{
      public class Point
      {
          public int x;
          public int y;
      }

      public Point starting = new Point();
      public Point ending = new Point();
}

Related Tutorials