using System;
using
System.Collections.Generic;
using
System.Text;
using
System.IO.Compression;
using System.IO;
namespace
Compress_and_decompress_string
{
class Compress
{
public static string
CompressString(string text)
{
byte[]
buffer = Encoding.UTF8.GetBytes(text);
MemoryStream
ms = new MemoryStream();

Join the conversation! Your thoughts help the community grow.