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.Binding Flags' and 'System.Reflection.Binding Flags'
CODE:
object newItem = itemType.InvokeMember("Cop y", System.Reflection.BindingF lags.Decla redOnly || System.Reflection.BindingF lags.Publi c || System.Reflection.BindingF lags.Insta nce || System.Reflection.BindingF lags.Invok eMethod, null, item, null);
ERROR:
Error 10 Operator '||' cannot be applied to operands of type 'System.Reflection.Binding
CODE:
object newItem = itemType.InvokeMember("Cop
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.