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