mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-21 09:02:26 +08:00
27 lines
825 B
C#
27 lines
825 B
C#
using System.Application.Properties;
|
|
using System.Collections.Generic;
|
|
|
|
namespace System.Application.Models
|
|
{
|
|
partial class OpenSourceLibrary
|
|
{
|
|
static readonly Lazy<List<OpenSourceLibrary>> mValues = new Lazy<List<OpenSourceLibrary>>(() =>
|
|
{
|
|
try
|
|
{
|
|
var list = Serializable.DMP<List<OpenSourceLibrary>>(SR.OpenSourceLibraryList) ?? new List<OpenSourceLibrary>();
|
|
return list;
|
|
}
|
|
catch
|
|
{
|
|
return new List<OpenSourceLibrary>();
|
|
}
|
|
});
|
|
|
|
public static List<OpenSourceLibrary> Values => mValues.Value;
|
|
|
|
static readonly Lazy<string> mStringValues = new Lazy<string>(() => ToString(Values));
|
|
|
|
public static string StringValues => mStringValues.Value;
|
|
}
|
|
} |