MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIRef<T>To­Serializable­Id
Open sandboxFocus

IRef<T>.ToSerializableId Method

ToSerializableId()

Returns a string that uniquely identifies the declaration represented by the current reference. This identifier can then be resolved using GetDeclarationFromId(SerializableDeclarationId), even in a different process or with a different version of Metalama than the one that created the id.

Declaration
SerializableDeclarationId ToSerializableId()
Returns
Type Description
SerializableDeclarationId

A string, or null if the current reference cannot be serialized to a public id.