forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenSourceLibrary.Values.cs
More file actions
33 lines (29 loc) · 972 Bytes
/
OpenSourceLibrary.Values.cs
File metadata and controls
33 lines (29 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Application.Properties;
using System.Collections.Generic;
using System.Linq;
namespace System.Application.Models
{
partial class OpenSourceLibrary
{
static readonly Lazy<List<OpenSourceLibrary>> mValues = new(() =>
{
try
{
var list = Serializable.DMP<List<OpenSourceLibrary>>(SR.OpenSourceLibraryList);
if (list != null)
{
var ignoreItem = list.Where(x => ignoreList.Contains(x.Name)).ToArray();
Array.ForEach(ignoreItem, x => list.Remove(x));
return list;
}
}
catch
{
}
return new();
});
public static List<OpenSourceLibrary> Values => mValues.Value;
static readonly Lazy<string> mStringValues = new(() => ToString(Values));
public static string StringValues => mStringValues.Value;
}
}