public string Encode(bool startWithDelimiter, char[] delimiter, string[] data) { // Clear last stored data Encoded.Clear(); if (data == null) { return(null); } if (delimiter == null) { return(null); } Encoded = new SEncoded(startWithDelimiter, delimiter, data); // Return calculated data depending on flag status return(Encoded.Encode() ? Encoded.Result : null); }
/// <summary> /// Default constructor. /// </summary> public Serializer() { Decoded = new SDecoded(); Encoded = new SEncoded(); }