amarr1143l
11 years agoContributor
Specify multiple BindingFlags in GetMethods_2
Hi,
I am trying to specify multiple constraints on BindingFlags of GetMethods_2 method.
In c#, multiple BindingFlags are separated using "|" character. However, in TC when I try to do the same, it throws an error stating "Invalid Character"
Please advise.
I am trying to specify multiple constraints on BindingFlags of GetMethods_2 method.
In c#, multiple BindingFlags are separated using "|" character. However, in TC when I try to do the same, it throws an error stating "Invalid Character"
Please advise.
- Hi Amar,
You can create a set of flags using Enum.Parse:Set objEnumType = dotNET.System_Reflection.BindingFlags.Public.GetType
Set objFlags = dotNET.System.Enum.Parse(objEnumType, "Public,Instance,DeclaredOnly")
Set objMethods = objClass.GetMethods_2(objFlags)