dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]inheritance problem


From: Neil Cawse
Subject: [DotGNU]inheritance problem
Date: Sat, 12 Jul 2003 19:32:57 -0400

using System;
public class Test
{
 private class Test1
 {
  public string unique;
  public Test1()
  {
   unique = "Test1";
  }
 }

 private class Test2 : Test1
 { }

 public static void Main()
 {
  Test2 test2 = new Test2();
  Console.WriteLine(test2.unique);
 }

}
 
Produces blank line in portable.net
and test1 in ms.net
not sure why??

reply via email to

[Prev in Thread] Current Thread [Next in Thread]