public void MakeNewObjectUnique(DataTypes.ArrowElementSave container, object newObject) { string name = LateBinder.GetValueStatic(newObject, "Name") as string; List <string> allNames = new List <string>(); foreach (var item in container.AllInstances) { if (item != newObject) { allNames.Add(LateBinder.GetValueStatic(item, "Name") as string); } } name = StringFunctions.MakeStringUnique(name, allNames); LateBinder.SetValueStatic(newObject, "Name", name); }
private void HandlePositionSet(float newPosition) { LateBinder.SetValueStatic(Caller, MemberToSet, newPosition); }