Returns a pointer to the last object in the array or returns nullptr if the array is empty.
Color GetLast()
import library "app_service_console_util.ssl"; auto Color r = new Color( 255, 0, 0, 255 ); auto Color g = new Color( 0, 255, 0, 255 ); auto Color b = new Color( 0, 0, 255, 255 ); auto ColorArray data; data.Add( r ); data.Add( g ); data.Add( b ); Color x = data.GetLast(); Console.Out( LibColor.Out( x ) );
Results
0, 0, 255, 255