// ======================================== // method // ======================================== public virtual void CopyDataTo(IExtendedData extendedData) { if (extendedData == null) { return; } foreach (string key in AsDictionary.Keys) { extendedData.AsDictionary[key] = AsDictionary[key]; } }
public virtual void ComplementDataTo(IExtendedData extendedData) { if (extendedData == null) { return; } foreach (string key in AsDictionary.Keys) { if (!extendedData.AsDictionary.ContainsKey(key)) { extendedData.AsDictionary[key] = AsDictionary[key]; } } }