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.
精彩评论