I saw this line of code:
RadEditor1.ContentFilters |= (Telerik.Web.UI.EditorFilters)
Enum.Parse(typeof(Telerik.Web.UI.EditorFilters), box.Value);
here
http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx
I want to know what "|=" means.
Thank you.
Best Regards,
Kevin Downey
What does "|=" mean in c#
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 12, 2013, 7:03 AM EDT
Check out:
http://msdn.microsoft.com/en-gb/library/kxszd0kx(v=vs.71).aspx
kevin.downey3 reputationPosted Mar 12, 2013, 7:10 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 12, 2013, 7:39 AM EDT
It's most commonly used when combining enum values (as here) or in general bit shifting code.
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 12, 2013, 8:48 PM EDT
hi,
it is The OR assignment operator.
x |= y is equivalent to x = x | y
please refer
http://msdn.microsoft.com/en-us/library/h5f1zzaw%28v=vs.80%29.aspx
hope this will help you.