public CheckIfEnabled ( string location ) : bool | ||
location | string | |
Résultat | bool |
public bool CheckIfEnabled(string location) {
// TODO: What if disabled directory is in enabled (like …/content/cars and …/content/ca)
return DisabledDirectory == null || !location.StartsWith(DisabledDirectory, StringComparison.OrdinalIgnoreCase);
}
}