WGet.NET
4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
WinGetObjectBuilder.cs
1
//--------------------------------------------------//
2
// Created by basicx-StrgV //
3
// https://github.com/basicx-StrgV/ //
4
//--------------------------------------------------//
5
namespace
WGetNET.Abstractions
6
{
14
internal
abstract
class
WinGetObjectBuilder<T> where T : IWinGetObject?
15
{
22
public
abstract
T GetInstance();
23
27
public
abstract
void
Clear();
28
35
public
static
bool
CheckShortenedValue(
string
value)
36
{
37
// Char 8230 is at the end of the shortened id if UTF-8 encoding is used.
38
#if NETCOREAPP3_1_OR_GREATER
39
if
(value.EndsWith((
char
)8230))
40
{
41
return
true
;
42
}
43
#elif NETSTANDARD2_0
44
if
(value.EndsWith(((
char
)8230).ToString()))
45
{
46
return
true
;
47
}
48
#endif
49
50
return
false
;
51
}
52
}
53
}
WGetNET.Abstractions
Definition
WinGetInfoEntry.cs:8