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 th...
- 11 years agoHi 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)