C#演示如何使用 XML 将源码编入文档

时间:2023-03-09 17:15:25
C#演示如何使用 XML 将源码编入文档

工作闲暇时间,将做工程过程中常用的代码段记录起来,下面的代码是关于C#演示如何使用 XML 将编入文档的代码,希望对大伙有较大帮助。

using System;

public class SomeClass
{
private string myName = null;

public SomeClass()
{
}

public string Name
{
get
{
if ( myName == null )
{
throw new Exception("Name is null");
}

return myName;
}
}

public void SomeMethod(string s)
{
}

public int SomeOtherMethod()
{
return 0;
}

public static int Main(String[] args)
{

return 0;
}
}