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; }
private void OnDeserialized(StreamingContext streamingContext) { _access = (Action)DelegateSerializationHelper.Deserialize(_serializedAccess); _serializedAccess = null; }
private void OnSerializing(StreamingContext streamingContext) { serializedCmp = DelegateSerializationHelper.Serialize(cmp); serializedAccess = DelegateSerializationHelper.Serialize(access); }
private void OnSerializing(StreamingContext streamingContext) { _serializedAccess = DelegateSerializationHelper.Serialize(_access); }