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