How to attach a custom int value to any node using C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ksandr1v

I need something like this:

anyNode.set(“myInt”, 10)

var val = anyNode.get(“myInt”)

I tried:
anyNode.Set(“myInt”, 10) // not worked, because “myInt” not exists
anyNode.DynamicObject.myInt = 10 // not worked, because “myInt” not exists

:bust_in_silhouette: Reply From: ksandr1v

Solved: anyNode.SetMeta()