Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IRef<T> / To­Serializable­Id

Method ToSerializableId

ToSerializableId()

Returns a string that uniquely identifies the declaration represented by the current reference. This identifier can then be resolved using Metalama.Framework.Code.IDeclarationFactory.GetDeclarationFromId(Metalama.Framework.Code.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.