Jump to content
Vincent Parrett

Find record operators via Rtti?

Recommended Posts

Is it possible to determine if a record type has an equality operator overload?  I'm scratching my head on this one, not sure if there's enough info in the rtti or I'm just not looking at the right thing. 

 

Use case, I need to compare if two records are equal (this is for DUnitX & Delphi-Mocks). Of course due to managed types etc it's not as simple as it seems.. however if the record has an Equals or NotEquals operator overload then I could use that. 

 

 

Edited by Vincent Parrett

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×