void IDeserializationCallback.OnDeserialization(Object sender) { if (this.store != null) { for (int index = 0; index < this.keys.Count; index++) { DependencyProperty dp = this.keys[index] as DependencyProperty; if (dp == null) { dp = DependencyProperty.FromKnown((byte)this.keys[index]); } this.store.Add(dp, this.values[index]); } } this.store = null; }
void IDeserializationCallback.OnDeserialization(object sender) { if (this.store != null) { for (int i = 0; i < this.keys.Count; i++) { DependencyProperty key = this.keys[i] as DependencyProperty; if (key == null) { key = DependencyProperty.FromKnown((byte)this.keys[i]); } this.store.Add(key, this.values[i]); } } this.store = null; }