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);
        }