Jump to content
chkaufmann

Find usage of indexed default property

Recommended Posts

In my interface I have the following property:

 

  IBSEntityProvider = interface
    function GetItems(AItemId: Integer): IBSEntity;
    property Items[AItemId: Integer]: IBSEntity read GetItems; default;
  end;

Now I need to know, where this is used in my application. For a method I can use grep or, if the method has a common name, I put a "deprecated" in the method declaration and use the list of warnings. In this case here, it doesn't work. But maybe somebody has another trick for this problem.

 

Christian

Share this post


Link to post

You could rename or comment out that property and let the compiler find all the errors.

Share this post


Link to post
1 hour ago, dummzeuch said:

You could rename or comment out that property and let the compiler find all the errors.

This is a solution, but I have too many places where I use the property. So this is not an option in this case.

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

×