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; }