@@ -307,6 +307,8 @@ delegate void InitDelegate(
307307 IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey ,
308308 IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue ,
309309 IntPtr systemCollectionsGenericListSystemStringConstructor ,
310+ IntPtr systemCollectionsGenericListSystemStringPropertyGetItem ,
311+ IntPtr systemCollectionsGenericListSystemStringPropertySetItem ,
310312 IntPtr systemCollectionsGenericListSystemStringMethodAddSystemString ,
311313 IntPtr systemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString ,
312314 IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue ,
@@ -468,6 +470,8 @@ static extern void Init(
468470 IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey ,
469471 IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue ,
470472 IntPtr systemCollectionsGenericListSystemStringConstructor ,
473+ IntPtr systemCollectionsGenericListSystemStringPropertyGetItem ,
474+ IntPtr systemCollectionsGenericListSystemStringPropertySetItem ,
471475 IntPtr systemCollectionsGenericListSystemStringMethodAddSystemString ,
472476 IntPtr systemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString ,
473477 IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue ,
@@ -538,6 +542,8 @@ IntPtr systemExceptionConstructorSystemString
538542 delegate int SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKeyDelegate ( int thisHandle ) ;
539543 delegate double SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValueDelegate ( int thisHandle ) ;
540544 delegate int SystemCollectionsGenericListSystemStringConstructorDelegate ( ) ;
545+ delegate int SystemCollectionsGenericListSystemStringPropertyGetItemDelegate ( int thisHandle , int index ) ;
546+ delegate void SystemCollectionsGenericListSystemStringPropertySetItemDelegate ( int thisHandle , int index , int valueHandle ) ;
541547 delegate void SystemCollectionsGenericListSystemStringMethodAddSystemStringDelegate ( int thisHandle , int itemHandle ) ;
542548 delegate int SystemCollectionsGenericLinkedListNodeSystemStringConstructorSystemStringDelegate ( int valueHandle ) ;
543549 delegate int SystemCollectionsGenericLinkedListNodeSystemStringPropertyGetValueDelegate ( int thisHandle ) ;
@@ -632,6 +638,8 @@ public static void Open(
632638 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKeyDelegate ( SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey ) ) ,
633639 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValueDelegate ( SystemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue ) ) ,
634640 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericListSystemStringConstructorDelegate ( SystemCollectionsGenericListSystemStringConstructor ) ) ,
641+ Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericListSystemStringPropertyGetItemDelegate ( SystemCollectionsGenericListSystemStringPropertyGetItem ) ) ,
642+ Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericListSystemStringPropertySetItemDelegate ( SystemCollectionsGenericListSystemStringPropertySetItem ) ) ,
635643 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericListSystemStringMethodAddSystemStringDelegate ( SystemCollectionsGenericListSystemStringMethodAddSystemString ) ) ,
636644 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericLinkedListNodeSystemStringConstructorSystemStringDelegate ( SystemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString ) ) ,
637645 Marshal . GetFunctionPointerForDelegate ( new SystemCollectionsGenericLinkedListNodeSystemStringPropertyGetValueDelegate ( SystemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue ) ) ,
@@ -1359,6 +1367,46 @@ static int SystemCollectionsGenericListSystemStringConstructor()
13591367 }
13601368 }
13611369
1370+ [ MonoPInvokeCallback ( typeof ( SystemCollectionsGenericListSystemStringPropertyGetItemDelegate ) ) ]
1371+ static int SystemCollectionsGenericListSystemStringPropertyGetItem ( int thisHandle , int index )
1372+ {
1373+ try
1374+ {
1375+ var thiz = ( System . Collections . Generic . List < string > ) NativeScript . Bindings . ObjectStore . Get ( thisHandle ) ;
1376+ var returnValue = thiz [ index ] ;
1377+ return NativeScript . Bindings . ObjectStore . GetHandle ( returnValue ) ;
1378+ }
1379+ catch ( System . NullReferenceException ex )
1380+ {
1381+ NativeScript . Bindings . SetCsharpExceptionSystemNullReferenceException ( NativeScript . Bindings . ObjectStore . Store ( ex ) ) ;
1382+ return default ( int ) ;
1383+ }
1384+ catch ( System . Exception ex )
1385+ {
1386+ NativeScript . Bindings . SetCsharpException ( NativeScript . Bindings . ObjectStore . Store ( ex ) ) ;
1387+ return default ( int ) ;
1388+ }
1389+ }
1390+
1391+ [ MonoPInvokeCallback ( typeof ( SystemCollectionsGenericListSystemStringPropertySetItemDelegate ) ) ]
1392+ static void SystemCollectionsGenericListSystemStringPropertySetItem ( int thisHandle , int index , int valueHandle )
1393+ {
1394+ try
1395+ {
1396+ var thiz = ( System . Collections . Generic . List < string > ) NativeScript . Bindings . ObjectStore . Get ( thisHandle ) ;
1397+ var value = ( string ) NativeScript . Bindings . ObjectStore . Get ( valueHandle ) ;
1398+ thiz [ index ] = value ;
1399+ }
1400+ catch ( System . NullReferenceException ex )
1401+ {
1402+ NativeScript . Bindings . SetCsharpExceptionSystemNullReferenceException ( NativeScript . Bindings . ObjectStore . Store ( ex ) ) ;
1403+ }
1404+ catch ( System . Exception ex )
1405+ {
1406+ NativeScript . Bindings . SetCsharpException ( NativeScript . Bindings . ObjectStore . Store ( ex ) ) ;
1407+ }
1408+ }
1409+
13621410 [ MonoPInvokeCallback ( typeof ( SystemCollectionsGenericListSystemStringMethodAddSystemStringDelegate ) ) ]
13631411 static void SystemCollectionsGenericListSystemStringMethodAddSystemString ( int thisHandle , int itemHandle )
13641412 {
0 commit comments