Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

SingletonList.cs

namespace Nop.Core.Infrastructure;

/// 
/// Provides a singleton list for a certain type.
/// 
/// The type of list to store.
public partial class SingletonList : Singleton>
{
    static SingletonList()
    {
        Singleton>.Instance = new List();
    }

    /// 
    /// The singleton instance for the specified type T. Only one instance (at the time) of this list for each type of T.
    /// 
    public static new IList Instance => Singleton>.Instance;
}