private UpdateInformation PrivateUpdateGlueProperty(AttributeUpdater attributeDescription, IJsCsGlue glue) { var oldGlue = attributeDescription.Child; var index = _TypePropertyAccessor.GetIndex(attributeDescription.PropertyAccessor); _Attributes.Apply(index, glue.AddRef()); return(new UpdateInformation { AddedProperty = index.Insert, OldReference = oldGlue }); }
private UpdateInformation PrivateUpdateGlueProperty(AttibuteUpdater attributeDescription, IJsCsGlue glue) { var oldGlue = attributeDescription.Child; var index = _TypePropertyAccessor.GetIndex(attributeDescription.PropertyAccessor); _Attributes.Apply(index, glue.AddRef()); return(new UpdateInformation { AddedProperty = index.Insert, ToBeCleaned = (oldGlue?.Release() == true) ? oldGlue : null }); }