logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LocalizationGetGameLanguage

    Use case for retrieving the current game language from the localization service.

    Inheritance
    object
    LocalizationGetGameLanguage
    Implements
    ISyncQueryUseCase<string>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Localization.Application.UseCases
    Assembly: Serenity.Localization.Application.dll
    Syntax
    public class LocalizationGetGameLanguage : ISyncQueryUseCase<string>, IUseCase

    Constructors

    LocalizationGetGameLanguage(ILocalizationService)

    Initializes a new instance of the LocalizationGetGameLanguage class.

    Declaration
    public LocalizationGetGameLanguage(ILocalizationService service)
    Parameters
    Type Name Description
    ILocalizationService service

    The localization service instance.

    Methods

    Execute()

    Executes the use case to get the current game language.

    Declaration
    public string Execute()
    Returns
    Type Description
    string

    Implements

    ISyncQueryUseCase<TOutput>
    IUseCase
    In this article
    © 2026 Serenity. All Rights Reserved