0
public class ArgParseHelper
{
/// <summary>
/// Constant for GuardMode "Report"
/// </summary>
private const string c_ModeReport = "REPORT";
/// <summary>
/// Constant for GuardMode "Enforce"
/// </summary>
private const string c_ModeEnforce = "ENFORCE";
public static bool TryGetSecurityGuardModeValue(string securityMode, out SecurityGuardMode securityGuardMode)
{
securityGuardMode = securityGuardMode = SecurityGuardMode.Enforce;
if (c_ModeEnforce.Equals(securityMode, StringComparison.OrdinalIgnoreCase))
{
return true;
}
else if (c_ModeReport.Equals(securityMode, StringComparison.OrdinalIgnoreCase))
{
securityGuardMode = SecurityGuardMode.Report;
return true;
}
return false;
}
}
와 방법을 정의?나는 다음과 같은이 메소드를 호출 밖으로 인수