//---------------------------------------------------------------------------- // Copyright (C) 2013-2015 Fabrice HARROUET (ENIB) // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies and // that both that copyright notice and this permission notice appear // in supporting documentation. // The author makes no representations about the suitability of this // software for any purpose. // It is provided "as is" without express or implied warranty. //---------------------------------------------------------------------------- using System; public partial class MyClass { public partial class MySubClass { public MySubClass(string msg) { _MySubClass(msg); } public void show() { _show(); } } public MyClass(string msg) { _MyClass(msg); } public void show() { _show(); } } public class Test { public static void Main(string[] args) { MyClass m=new MyClass("ABCD"); MyClass.MySubClass s=new MyClass.MySubClass("1234"); m.show(); s.show(); } } //----------------------------------------------------------------------------