Bitwise comparison

Thread is closed for posting
2 posts, 0 answers
  1. Stefan Lorenz
    Stefan Lorenz avatar
    13 posts
    Member since:
    May 2010

    Posted 10 Jun 2010 Link to this post


    I wonder how to do bitwise comparison.

    Using something like "from t in ....where (t.State & myFlags.Some) == myFlags.Some" raises an error. The generated SQL looks like "WHERE a[field] AND 1 = 1".

    This explains the error, but how to do it right?

    Best Regards
  2. Thomas
    Thomas avatar
    590 posts

    Posted 10 Jun 2010 Link to this post

    Hello Stefan Lorenz,

    unfortunately, bitwise operations are not supported yet and lead to such errors. We are targetting this feature for the next patch (not the upcoming build).

    Stay tuned & all the best,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top