AcManager.Tools.Managers.Directories.BaseAcDirectories.GetLocation C# (CSharp) Метод

GetLocation() публичный Метод

public GetLocation ( string id, bool enabled ) : string
id string
enabled bool
Результат string
        public string GetLocation(string id, bool enabled) {
            if (id == null) throw new ArgumentNullException(nameof(id));
            if (!Actual) throw new Exception(ToolsStrings.AcObject_NotValidAnymore);
            if (DisabledDirectory == null && !enabled) throw new Exception(ToolsStrings.AcObject_CannotBeDisabled);
            return Path.Combine(enabled ? EnabledDirectory : DisabledDirectory, id);
        }