protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object newValue) { int num = propertyBag.GetValueOrDefault <int>(InternalSchema.InferenceUserCapabilityFlags, 0); if ((bool)newValue) { num |= this.propertyFlag; } else { num &= ~this.propertyFlag; } propertyBag.SetOrDeleteProperty(InternalSchema.InferenceUserCapabilityFlags, (num == 0) ? null : num); }
protected sealed override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value) { if (value == null) { propertyBag.Delete(InternalSchema.MapiConversationFamilyId); return; } ConversationId conversationId = value as ConversationId; if (conversationId == null) { throw new ArgumentException("value", "Must be null or ConversationId"); } propertyBag.SetOrDeleteProperty(InternalSchema.MapiConversationFamilyId, conversationId.GetBytes()); }