WGet.NET
4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
ProcessResult.cs
1
//--------------------------------------------------//
2
// Created by basicx-StrgV //
3
// https://github.com/basicx-StrgV/ //
4
//--------------------------------------------------//
5
using
System;
6
7
namespace
WGetNET.Models
8
{
9
internal
class
ProcessResult
10
{
14
public
int
ExitCode {
get
;
set
; }
18
public
string
[] Output
19
{
20
get
21
{
22
return
_output;
23
}
24
set
25
{
26
if
(value is
null
)
27
{
28
_output = Array.Empty<
string
>();
29
}
30
else
31
{
32
_output = value;
33
}
34
}
35
}
39
public
bool
Success
40
{
41
get
42
{
43
if
(ExitCode == 0)
44
{
45
return
true
;
46
}
47
else
48
{
49
return
false
;
50
}
51
}
52
}
53
54
private
string
[] _output = Array.Empty<
string
>();
55
}
56
}
WGetNET.Models
Definition
ProcessResult.cs:8