ObjectId - cschladetsch/CsharpPyro GitHub Wiki

Object Identifier

Every object within a local registry has a monotonically increasing identifying number.

To get the id of an object, you can use code like:

if (obj as IReflected reflected)
     id = reflected.Self.Id;