Esempio n. 1
0
        private static Dictionary <string, VersionConverter.RawEventAccessor> CreateEventDataToPropertyMappingDictionary()
        {
            Dictionary <string, VersionConverter.RawEventAccessor> dictionary = new Dictionary <string, VersionConverter.RawEventAccessor>();

            VersionConverter.ParameterSetter setter = delegate(RecipientTrackingEvent trackingEventToSet, string value)
            {
                trackingEventToSet.RootAddress = value;
            };
            VersionConverter.ParameterGetter getter = (RecipientTrackingEvent trackingEventToGetFrom) => trackingEventToGetFrom.RootAddress;
            dictionary.Add("root", new VersionConverter.RawEventAccessor(setter, getter));
            return(dictionary);
        }
Esempio n. 2
0
 public RawEventAccessor(VersionConverter.ParameterSetter setter, VersionConverter.ParameterGetter getter)
 {
     this.Getter = getter;
     this.Setter = setter;
 }