Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class NullLanguageSelector

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A language selector that will simply set selected language to the requested content language.

Inheritance
System.Object
NullLanguageSelector
Implements
System.Collections.Generic.IEnumerable<LoaderOption>
System.Collections.IEnumerable
System.Xml.Serialization.IXmlSerializable
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class NullLanguageSelector : LanguageSelector, IEnumerable<LoaderOption>, IEnumerable, IXmlSerializable, ILanguageSelector
Remarks

No checks of any kind will be performed by this language selector imlpementation. If may very well indicate a language that does not exist for the current page.

The purpose of this selector implementation is to speed up the language selection process when retrieving pages without the need for proper language information. Typically when iterating thru the page tree and finding the parents of a page.

Constructors

NullLanguageSelector()

Declaration
public NullLanguageSelector()

Properties

Instance

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets an instance of the NullLanguageSelector.

Declaration
public static LanguageSelector Instance { get; }
Property Value
Type Description
LanguageSelector

The instance.

Remarks

This class is immutable and to remove the need for creating multiple instances, simply reuse the instance returned by this property.

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.Xml.Serialization.IXmlSerializable

Extension Methods