public string MemoryStorageToString(MemoryStorage storage) { StringBuilder stringBuffer = new StringBuilder(); foreach (KeyValuePair <string, object> keyValue in storage) { stringBuffer.AppendFormat(@"{0}=""{1}"";", keyValue.Key, Converter.Serialize(keyValue.Value)); } return(stringBuffer.ToString().TrimEnd(';')); }