using System;
using System.Diagnostics;
using System.Reflection;
public partial class Program
{
internal class CommandLineInfo
{
public bool Help {
get; set; }
public string Out {
get; set; }
public ProcessPriorityClass Priority
{
get {
return _Priority; }
set {
_Priority = value; }
}
private ProcessPriorityClass _Priority = ProcessPriorityClass.Normal;
}
internal class CommandLineHandler
{
public static void Parse(string[] args, object commandline)
{
string errorMessage;
if (!TryParse(args, commandline, out errorMessage))
{
throw new ApplicationException(errorMessage
C# 利用反射修改类型数据的方法
最新推荐文章于 2024-06-28 17:52:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)