vb.net - How to create an array of actions? -
i writing vb.net class, , have run issue of needing create array of actions. how 1 in vb.net?
update: trying write collision detection class stores objects collide with, , functions execute when collision happens indexes line object function.
so like:
class cde private collidables windows.forms.control() private actions 'action array
there's not enough info provide specific answer here, create array same create other array in vb.net.
dim actionsarr = new myaction() {action1, action2, action3, action4}
on side note, i've been more fond of using lists on arrays. it's easier add , modify items in list. https://msdn.microsoft.com/en-us/library/bb385204.aspx
Comments
Post a Comment