Esempio n. 1
0
 internal static IntPtr GetPointer(IAlbum album)
 {
     if (album.GetType() == typeof(AlbumWrapper))
     {
         return(((AlbumWrapper)album).album.albumPtr);
     }
     throw new ArgumentException("Invalid album");
 }
Esempio n. 2
0
 internal static IntPtr GetPointer(IAlbum album)
 {
     if (album.GetType() == typeof(AlbumWrapper))
         return ((AlbumWrapper)album).album.albumPtr;
     throw new ArgumentException("Invalid album");
 }