mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-13 23:36:35 +08:00
Cleanup, extend ParseUtility to dict keys
This commit is contained in:
@ -41,10 +41,10 @@ namespace UnityExplorer.UI.CacheObject
|
||||
this.DisplayedKey = key.TryCast();
|
||||
|
||||
var type = DisplayedKey.GetType();
|
||||
if (type == typeof(string) || (type.IsPrimitive && !(type == typeof(bool))))
|
||||
if (ParseUtility.CanParse(type))
|
||||
{
|
||||
KeyInputWanted = true;
|
||||
KeyInputText = DisplayedKey.ToString();
|
||||
KeyInputText = ParseUtility.ToStringForInput(DisplayedKey, type);
|
||||
KeyInputTypeText = SignatureHighlighter.Parse(type, false);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user