开发者

fastest way to make a readonly copy of an array of structure?

开发者 https://www.devze.com 2022-12-15 07:24 出处:网络
I\'m currently using something like c# var myvar = directcast(myarrayofstruct.clone(), mystru开发者_如何学JAVAc());

I'm currently using something like

c#
var myvar = directcast(myarrayofstruct.clone(), mystru开发者_如何学JAVAc());

vb.net
dim myvar = directcast(myarrayofstruct.clone, mystruc())

is there a better way?


Calling Clone() is about as fast as you'll get, yes.

0

精彩评论

暂无评论...
验证码 换一张
取 消