//----< entry point >--------------------------------------------

        static void Main(string[] args)
        {
            Console.Write("\n  Demonstrating Type Relationships");
            Console.Write("\n ==================================\n");

            DemoRelationships p = new DemoRelationships();

            p.at.say();
            p.dt.say();
            UsedType ut = new UsedType("holding this string");

            p.say(ut);
            Console.Write("\n\n");
        }
Exemplo n.º 2
0
    //----< entry point >--------------------------------------------

    static void Main(string[] args)
    {
      Console.Write("\n  Demonstrating Type Relationships");
      Console.Write("\n ==================================\n");

      DemoRelationships p = new DemoRelationships();
      p.at.say();
      p.dt.say();
      UsedType ut = new UsedType("holding this string");
      p.say(ut);
      Console.Write("\n\n");
    }
Exemplo n.º 3
0
        //----< entry point >--------------------------------------------
        static void Main(string[] args)
        {
            Console.Write("\n  Demonstrating Type Relationships");
            Console.Write("\n ==================================\n");

            DemoRelationships p = new DemoRelationships();
            p.at.say();
            p.dt.say();

            ComposedType ct = new ComposedType();
            ct.d = 1;

            UsedType ut = new UsedType("holding this string");
            p.say(ut);
            Console.Write("\n\n");
              int x = 0;

              do
              x++;
              while (x < 5);
        }