开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜