Forum Discussion

shinuarora28's avatar
shinuarora28
New Contributor
13 years ago

Unable to access .Net assembly struct from test complete

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;



namespace TestDll

{

    public class TestClass

    {

    }



    public struct TestStruct

    {

        public string Name { get; set; }

    }



    public struct TestStruct2

    {

        public TestStruct2(string str) : this()

        {

            Name = str;

            Console.WriteLine(str);

        }

        public string Name { get; set; }

    }

}



I had created the project in Microsoft Visual Studio 2012.



Using the CLR Bridge I selected the components. Please find attached the screenshot. When I try to access the Name property in side  TestStruct stuct from Test complete I am unable to do that. I am able to access the from inside TestStruct2 as it has a constructor defined inside it so can access using zctor.



Please suggest how to access the properties of a struct defined in Visual Studio.
No RepliesBe the first to reply