Some context first. Revit is a software used by architects which has an API you can use to automate some tasks, one of the things you can do is create a dialog which will look like a normal Revit pop up.
This dialog has a CommonButton property that adds default buttons like Yes, No, Cancel and Ok, but I never saw this character | used in this way. What does it mean or do? How is it actually called?
td.CommonButtons = TaskDialogCommonButtons.No | TaskDialogCommonButtons.Yes | TaskDialogCommonButtons.Cancel;
td being your TaskDialog object
This will add Yes, No and Cancel buttons to your dialog.
I already searched for this with no luck, I can only find the "or" logic gate for if statements and doesn't seem to apply to this. Neither did I see it anywhere else than in this Revit context (not that I'm a full time programmer anyway). Thanks