Add ToArray test for C# std::vector wrapper

This commit is contained in:
William S Fulton 2018-01-12 18:26:47 +00:00
commit 368cd3b52c
3 changed files with 15 additions and 1 deletions

View file

@ -115,7 +115,7 @@
}
public $typemap(cstype, CTYPE)[] ToArray() {
$typemap(cstype, CTYPE)[] array = new $typemap(cstype, CTYPE)[Count];
$typemap(cstype, CTYPE)[] array = new $typemap(cstype, CTYPE)[this.Count];
this.CopyTo(array);
return array;
}