You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I couldn't figure out a way to remove a property. Is this possible?
As a workaround I convert the node to Any, cast that to a dictionary, filter it, and convert it to a node again, but this isn't very efficient..
Edit: I must say, in my case I'm actually trying to rename a property, which I would be able to achieve by assigning a new property, and removing the old. If however there's a way of renaming a property directly, that –of course– would work as well.
The text was updated successfully, but these errors were encountered:
Is it possible to remove/unset a property of a
Yams.Node
object?I'm able to add or replace properties quite easily;
But I couldn't figure out a way to remove a property. Is this possible?
As a workaround I convert the node to
Any
, cast that to a dictionary, filter it, and convert it to a node again, but this isn't very efficient..Edit: I must say, in my case I'm actually trying to rename a property, which I would be able to achieve by assigning a new property, and removing the old. If however there's a way of renaming a property directly, that –of course– would work as well.
The text was updated successfully, but these errors were encountered: