Forum Discussion

fayrehouse's avatar
fayrehouse
Frequent Contributor
13 years ago
Solved

System.Collections.Specialized.StringCollection ??

Hi All, I have an object in our AUT that has a method that takes an object of the above type as a parameter.... And I'm having trouble defining an object of that type. Can anyone correct...
  • simon_glet's avatar
    13 years ago
    Hi Steve,



    With TC 9.20 after adding "System, version=4.0.0.0, ..." to the CLR bridge, the following works:




    function testTypeCollectionFromDotNet()

    {

     
    var myAssessments = dotNET.System_Collections_Specialized.StringCollection.zctor();



      myAssessments.add("AA000191");



      Log.Message(myAssessments.Item(0));

    }



    For more info,this will help.



    Sincerely