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
Loading
Jignesh TrivediPosted Mar 13, 2013, 12:48 AM
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.
VulpesPosted Mar 12, 2013, 11:39 AM
It's most commonly used when combining enum values (as here) or in general bit shifting code.
kevin.downeyPosted Mar 12, 2013, 11:10 AM
VulpesPosted Mar 12, 2013, 11:03 AM
Check out:
http://msdn.microsoft.com/en-gb/library/kxszd0kx(v=vs.71).aspx