Esempio n. 1
0
 private void OnDeserialized(StreamingContext streamingContext)
 {
     cmp              = (Func <KeyValuePair <TKey, TPriority>, KeyValuePair <TKey, TPriority>, bool>)DelegateSerializationHelper.Deserialize(serializedCmp);
     access           = (Action)DelegateSerializationHelper.Deserialize(serializedAccess);
     serializedCmp    = null;
     serializedAccess = null;
 }
Esempio n. 2
0
 private void OnDeserialized(StreamingContext streamingContext)
 {
     _access           = (Action)DelegateSerializationHelper.Deserialize(_serializedAccess);
     _serializedAccess = null;
 }
Esempio n. 3
0
 private void OnSerializing(StreamingContext streamingContext)
 {
     serializedCmp    = DelegateSerializationHelper.Serialize(cmp);
     serializedAccess = DelegateSerializationHelper.Serialize(access);
 }
Esempio n. 4
0
 private void OnSerializing(StreamingContext streamingContext)
 {
     _serializedAccess = DelegateSerializationHelper.Serialize(_access);
 }