Merge pull request #345 from hiroj/fix_linq_count

fix Count() to Count
This commit is contained in:
ousttrue
2019-12-16 21:53:02 +09:00
committed by GitHub

View File

@@ -119,7 +119,7 @@ namespace UniGLTF
where TFrom: struct
where TTo : struct
{
var bytes = new byte[src.Count() * Marshal.SizeOf(typeof(TFrom))];
var bytes = new byte[src.Count * Marshal.SizeOf(typeof(TFrom))];
using (var pin = Pin.Create(src))
{
Marshal.Copy(pin.Ptr, bytes, 0, bytes.Length);