I have a versioned item and its info object and I need to see whether it's checked out or not, however, when I view its info.LockType.Value, I see it has assigned "CheckedOut|Permanent". How can I compare against it? I've tried comparing against LockType.CheckedOut or LockType.Permanent and each returns false.
FullVersionInfo info = (FullVersionInfo)versionedItem.VersionInfo;
if (info.LockType.Value == LockType.CheckedOut)
{
// I am not getting here when item is "CheckedOut|Permanent"}