mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix type being used in SetField
This commit is contained in:
@@ -14,7 +14,7 @@ namespace SabreTools.Filter
|
||||
if (dictionaryBase == null || fieldName == null)
|
||||
return false;
|
||||
|
||||
var constants = TypeHelper.GetConstants(typeof(DictionaryBase));
|
||||
var constants = TypeHelper.GetConstants(dictionaryBase.GetType());
|
||||
if (constants == null || !constants.Any(c => string.Equals(c, fieldName, StringComparison.InvariantCultureIgnoreCase)))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user