//---------------------------------------------------------------------------- // 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 { protected string _msg; protected void _MySubClass(string msg) { _msg=msg; Console.WriteLine("MySubClass(\"{0}\")",_msg); } protected void _show() { Console.WriteLine("MySubClass.show(\"{0}\")",_msg); } } protected string _msg; protected void _MyClass(string msg) { _msg=msg; Console.WriteLine("MyClass(\"{0}\")",_msg); } protected void _show() { Console.WriteLine("MyClass.show(\"{0}\")",_msg); } } //----------------------------------------------------------------------------