Is it possible to define a generic type Vector in Actionsctipt 3?

前端 未结 6 2073
遇见更好的自我
遇见更好的自我 2021-02-08 22:04

Hi i need to make a VectorIterator, so i need to accept a Vector with any type. I am currently trying to define the type as * like so:

var collection:Vector.<         


        
6条回答
  •  醉酒成梦
    2021-02-08 22:45

    var collection:Vector. = new Vector.()
    
    
    

    maybe? But i'm just speculating, haven't tried it.

    提交回复
    热议问题