Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class SettingsFileExtensions
- {
- public static bool DoesCategoryExist(this SettingsFile settings, string inputCategory)
- {
- string[] categories = settings.GetCategoryNames();
- foreach (string category in categories)
- {
- if (category.ToLower() == inputCategory.ToLower())
- return true;
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement