public string SerializeField() { bool isxml = fieldType == FlowTypeEnum.XML; KEYVALUES.IKeyValuesSerializer serializer = KeyValueTools.SerializerFactory(isxml); string json = serializer.Serialize(this); return(json); }
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); }