예제 #1
0
        public PuzzleSolution SolvePuzzle(PuzzleValue puzzle)
        {
            if (puzzle == null)
            {
                throw new ArgumentNullException(nameof(puzzle));
            }

            return(new PuzzleSolution(Decrypt(puzzle._Value)));
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            PuzzleValue item = obj as PuzzleValue;

            if (item == null)
            {
                return(false);
            }
            return(this._Value.Equals(item._Value));
        }
예제 #3
0
 public Puzzle(RsaPubKey rsaPubKey, PuzzleValue puzzleValue)
 {
     this._RsaPubKey   = rsaPubKey ?? throw new ArgumentNullException(nameof(rsaPubKey));
     this._PuzzleValue = puzzleValue ?? throw new ArgumentNullException(nameof(puzzleValue));
 }