Пример #1
0
 private void ConfigureCulture()
 {
     if (Option.Output.Culture == null || Option.Output.Culture.Length == 0)
     {
         // Fallback to current culture
         var current = PSDocumentOption.GetCurrentCulture();
         Option.Output.Culture = new string[] { current.Name };
     }
 }
Пример #2
0
        private void ConfigureCulture()
        {
            if (Option.Output.Culture == null || Option.Output.Culture.Length == 0)
            {
                // Fallback to current culture
                var current = PSDocumentOption.GetCurrentCulture();
                if (current == null || string.IsNullOrEmpty(current.Name))
                {
                    return;
                }

                Option.Output.Culture = new string[] { current.Name };
            }
        }