在c#中如何获取程序类名称和命名空间
Console.WriteLine( "Class : {0}", System.Reflection.Assembly.GetEntryAssembly( ).EntryPoint.DeclaringType.Name ); Console.WriteLine( "Namespace : {0}", System.Reflection.Assembly.GetEntryAssembly( ).EntryPoint.DeclaringType.Namespace );
日期:2020-04-11 22:50:23 来源:oir作者:oir