mirror of
https://github.com/GhostPack/SharpDPAPI.git
synced 2026-11-10 02:01:27 -10:00
23 lines
655 B
C#
Executable File
23 lines
655 B
C#
Executable File
using System.Collections.Generic;
|
|
|
|
namespace SharpChrome.Domain
|
|
{
|
|
public class ArgumentParserResult
|
|
{
|
|
public bool ParsedOk { get; }
|
|
public Dictionary<string, string> Arguments { get; }
|
|
|
|
private ArgumentParserResult(bool parsedOk, Dictionary<string, string> arguments)
|
|
{
|
|
ParsedOk = parsedOk;
|
|
Arguments = arguments;
|
|
}
|
|
|
|
public static ArgumentParserResult Success(Dictionary<string, string> arguments)
|
|
=> new ArgumentParserResult(true, arguments);
|
|
|
|
public static ArgumentParserResult Failure()
|
|
=> new ArgumentParserResult(false, null);
|
|
|
|
}
|
|
} |