How to detect if a mesh has changed or not?

I have a component that does heavy computation over a mesh + some other light computation based on parameters.

The heavy part is only needed to re-compute once the mesh has changed.

I tried mesh.GetHashCode() and it doesn’t do the work, as described in:

My question is if there’s a function to get a hash code or a guid or anything that is associated with a mesh (if for general geometry, even better) so that it only changes when the mesh is changed.

Solve this by using:

Rhino.Geometry.InstanceReferenceGeometry.GeometryEquals(meshA, meshB);