Link to home
Start Free TrialLog in
Avatar of wenyonk
wenyonk

asked on

Operator '||' cannot be applied to operands of type

I am reciving the following error on the following code can someone please help?

ERROR:
Error  10  Operator '||' cannot be applied to operands of type 'System.Reflection.BindingFlags' and 'System.Reflection.BindingFlags'


CODE:
object newItem = itemType.InvokeMember("Copy", System.Reflection.BindingFlags.DeclaredOnly || System.Reflection.BindingFlags.Public || System.Reflection.BindingFlags.Instance || System.Reflection.BindingFlags.InvokeMethod, null, item, null);
ASKER CERTIFIED SOLUTION
Avatar of dstanley9
dstanley9

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial