Borodar.RainbowFolders.Editor.Settings.RainbowFoldersSettings.GetFolder C# (CSharp) Method

GetFolder() public method

Searches for a folder config that has the same type and key values. Returns the first occurrence within the settings, if found; null otherwise.
public GetFolder ( RainbowFolder match ) : RainbowFolder
match RainbowFolder
return RainbowFolder
        public RainbowFolder GetFolder(RainbowFolder match)
        {
            if (IsNullOrEmpty(Folders) || match == null) return null;
            return Folders.Find(x => x.Type == match.Type && x.Key == match.Key);
        }