Reputation: 10509
I am importing a songs collection from an Album
object that is obtained from querying MediaLibrary
on Windows Phone Mango.
Is there a unique identifier provided by the platform, by which I could be identifying different songs and albums?
I need something that will remain the same for the same albums if I re-query the MediaLibrary
next time my app is ran.
I have seen a "handle" property in the debugger, but it doesn't appear in any of the Album class documentation.
Upvotes: 3
Views: 290
Reputation: 10372
I'd try GetHashCode()
for Song
and Album
. At least Song
overrides this function directly, so hopefully it is computed from the song's properties.
Upvotes: 1