private void InternalTargetChanged(IInfo targetObject) { InfoAttribute infoAttribute = targetObject.GetType().GetCustomAttribute <InfoAttribute>(); if (!infoAttribute.Editor) { InfoResolver.UpdateInfo(targetObject.GetType(), (IInfo)targetObject); } else { EditorInfoResolver.UpdateInfo(targetObject.GetType(), (IInfo)targetObject); } OnTargetChanged(targetObject); }