If you are processing objects in the Watch window and want to check the current generation of that object, you can easily get it by calling GC.getGeneration(YourObjectName).
Must read:
If you create an object ID in a view window, such as (image #1 above), you can also see the generation of a newly created object ID GC.getGeneration(#id)
I hope you learned new thing and will use this in your daily development practices. You can check more articles on our website under C# section HERE or you can also check same on Microsoft Docs too.