예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected WfProcessDescriptor(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     this._Activities         = (WfActivityDescriptorCollection)info.GetValue("Activities", typeof(WfActivityDescriptorCollection));
     this._Variables          = (WfVariableDescriptorCollection)info.GetValue("Variables", typeof(WfVariableDescriptorCollection));
     this._Version            = info.GetString("Version");
     this._ExtendedProperties = (WfExtendedPropertyDictionary)info.GetValue("ExtendedProperties", typeof(WfExtendedPropertyDictionary));
 }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected WfActivityDescriptor(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            this._ToTransitions   = (ToTransitionsDescriptorCollection)info.GetValue("ToTransitions", typeof(ToTransitionsDescriptorCollection));
            this._FromTransitions = (FromTransitionsDescriptorCollection)info.GetValue("FromTransitions", typeof(FromTransitionsDescriptorCollection));

            this._Process            = (WfProcessDescriptor)info.GetValue("Process", typeof(WfProcessDescriptor));
            this._Resources          = (WfResourceDescriptorCollection)info.GetValue("Resources", typeof(WfResourceDescriptorCollection));
            this._Variables          = (WfVariableDescriptorCollection)info.GetValue("Variables", typeof(WfVariableDescriptorCollection));
            this._ExtendedProperties = (WfExtendedPropertyDictionary)info.GetValue("ExtendedProperty", typeof(WfExtendedPropertyDictionary));
        }