public static bool ApplyStoredObject(StoredObject storedObject, object target) { if (storedObject.objectType != target.GetType()) { return(false); } storedObject.ApplyTo(target); return(true); }