Esempio n. 1
0
        public override object Deserialize(IDictionary <string, object> dictionary, Type type, JavaScriptSerializer serializer)
        {
            WfClientActivityResourceDescriptorBase actResourceDesp = (WfClientActivityResourceDescriptorBase)base.Deserialize(dictionary, type, serializer);

            actResourceDesp.ActivityKey = dictionary.GetValue("activityKey", string.Empty);

            return(actResourceDesp);
        }
Esempio n. 2
0
        public override IDictionary <string, object> Serialize(object obj, JavaScriptSerializer serializer)
        {
            WfClientActivityResourceDescriptorBase actResourceDesp = (WfClientActivityResourceDescriptorBase)obj;

            IDictionary <string, object> dictionary = base.Serialize(obj, serializer);

            dictionary.AddNonDefaultValue("activityKey", actResourceDesp.ActivityKey);

            return(dictionary);
        }