mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 03:59:34 +08:00
perfect Tools.OpenSourceLibraryList
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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
|
||||
{
|
||||
return Serializable.DMP<List<OpenSourceLibrary>>(SR.OpenSourceLibraryList) ?? new List<OpenSourceLibrary>();
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user