コード例 #1
0
 // Token: 0x0600027F RID: 639 RVA: 0x00009382 File Offset: 0x00007582
 public static AnchorRowSelectorResult SelectByItemClassAndStopProcessing(IDictionary <PropertyDefinition, object> row)
 {
     if (!AnchorXmlSerializableObject <TXmlSerializable> .GetItemClass().Equals(row[StoreObjectSchema.ItemClass]))
     {
         return(AnchorRowSelectorResult.RejectRowStopProcessing);
     }
     return(AnchorRowSelectorResult.AcceptRow);
 }
コード例 #2
0
        // Token: 0x06000281 RID: 641 RVA: 0x000093A8 File Offset: 0x000075A8
        public override void WriteToMessageItem(IAnchorStoreObject message, bool loaded)
        {
            base.WriteToMessageItem(message, loaded);
            message[StoreObjectSchema.ItemClass] = AnchorXmlSerializableObject <TXmlSerializable> .GetItemClass();

            PropertyDefinition textBody        = ItemSchema.TextBody;
            TXmlSerializable   persistedObject = this.PersistedObject;

            message[textBody] = persistedObject.Serialize(false);
        }
コード例 #3
0
        // Token: 0x06000282 RID: 642 RVA: 0x000093F0 File Offset: 0x000075F0
        public override bool ReadFromMessageItem(IAnchorStoreObject message)
        {
            if (!base.ReadFromMessageItem(message))
            {
                return(false);
            }
            if (!AnchorXmlSerializableObject <TXmlSerializable> .GetItemClass().Equals(message[StoreObjectSchema.ItemClass]))
            {
                return(false);
            }
            string text = message[ItemSchema.TextBody] as string;

            if (string.IsNullOrEmpty(text))
            {
                return(false);
            }
            this.PersistedObject = XMLSerializableBase.Deserialize <TXmlSerializable>(text, true);
            return(true);
        }