umair_chagani
13 years agoNew Contributor
Get control via method in c#
hello,
I'm trying to build a flexible library that we can use via TC's Connected Application.
I know that to retreive a control in C# I would do:
var x = Aliases["Blah"]["blah"]["blah1"]
Is there a way to do the same thing via method call? Something like:
var x = Connect.GetObject("Blah.blah.blah1");
This is just an example so you know what I would like to do. I'm not sure if GetObject is the right method to use for this sort of thing (or if it's even possible). Getting an object via method call by passing in a string for alias or some other way to pass in a string to get an object will make my life a lot easier.
I'm trying to build a flexible library that we can use via TC's Connected Application.
I know that to retreive a control in C# I would do:
var x = Aliases["Blah"]["blah"]["blah1"]
Is there a way to do the same thing via method call? Something like:
var x = Connect.GetObject("Blah.blah.blah1");
This is just an example so you know what I would like to do. I'm not sure if GetObject is the right method to use for this sort of thing (or if it's even possible). Getting an object via method call by passing in a string for alias or some other way to pass in a string to get an object will make my life a lot easier.