示例#1
0
        public string SerializeField()
        {
            bool isxml = fieldType == FlowTypeEnum.XML;

            KEYVALUES.IKeyValuesSerializer serializer = KeyValueTools.SerializerFactory(isxml);
            string json = serializer.Serialize(this);

            return(json);
        }
示例#2
0
        public void DeSerializeField(string dataField)
        {
            bool isxml = fieldType == FlowTypeEnum.XML;

            KEYVALUES.IKeyValuesSerializer serializer = KeyValueTools.SerializerFactory(isxml);
            KeyValues edes = serializer.DeSerialize(dataField);

            this.Clear();
            this.AddRange(edes);
        }