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
commit ae99d5bb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);