This is a migrated thread and some comments may be shown as answers.

How to obtain object scope id?

2 Answers 79 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 02 Nov 2010, 10:10 AM
Hi,

is there a way to obtain the id of an object scope. I need to save this information in order to perform some actions within my changetracker. In debugging I see that the object scopes are named "object scope 1", "object scope 2",... Is there a way to obtain this id?

Thanks,
Martin

2 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 02 Nov 2010, 03:36 PM
...and if it is not possible to obtain the id of the object scope is there another unique identifier for an object scope?
0
Alexander
Telerik team
answered on 04 Nov 2010, 09:38 AM
Hi Martin,

Unfortunately there is no way to get the internal id of a scope. You can however use the GetHashCode() method to obtain a unique number associated with a scope. Just note that the GetHashCode() method returns an Int32 value, and that might not be correct for 64bit applications. But you should not experience any problems if your application is 32bit.

Kind regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or