Exemple #1
0
        public void ChangeLanguage([NotNull] ILanguage language)
        {
            Argument.NotNull(nameof(language), language);
            if (language == _language)
            {
                return;
            }
            _language = language;

            if (_languageSession != null)
            {
                _lastText = _languageSession.GetText();
                _languageSession.Dispose();
            }
            _languageSession = null;
        }
Exemple #2
0
 public void Dispose() => _languageSession?.Dispose();