mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-22 16:42:38 +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