- Notifications
You must be signed in to change notification settings - Fork749
Closed
Description
According to readme array can be instantiated like this:
http://pythonnet.github.io/readme.html
from System import Arraymyarray = Array[int](10)
However this syntax stopped working and instead need to use one of two options:
list(Array.CreateInstance(int,10)) # [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
or
list(Array[int](range(10))) #[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Metadata
Metadata
Assignees
Labels
No labels