Example #1
0
        public void Initialize(Object connectingObj, Object connectedObj, InitializationDirection d)
        {
            Dictionary <FieldInfo, PropertyInfo> mapping = GetConnectedFields(connectingObj, connectingObj);

            foreach (KeyValuePair <FieldInfo, PropertyInfo> p in mapping)
            {
                d.Connect(connectingObj, connectedObj, p.Key, p.Value);
            }
        }
        public void Initialize(Object connectingObj, Object connectedObj, InitializationDirection d)
        {
            Dictionary<FieldInfo, PropertyInfo> mapping = GetConnectedFields(connectingObj, connectingObj);

            foreach (KeyValuePair<FieldInfo, PropertyInfo> p in mapping)
            {
                d.Connect(connectingObj, connectedObj, p.Key, p.Value);
            }
        }