A cell represents a data structure on TON Blockchain. Cells are able to store up to 1023 bits and possess up to 4 references to other cells.
string bitsArray = /* bits array string representation */;
// or
Bits bits = new Bits(/* byte array */);
Cell[] refs = /* array of cell refs */;
Cell cell = new Cell(bitsArray);
// or
Cell cell = new Cell(bits, refs);
string bitsArray = /* bits array string representation */;
// or
Bits bits = new Bits(/* byte array */);
Cell cell = Cell.From(bitsArray);
// or
Cell cell = Cell.From(bits);
string bitsArray = /* bits array string representation */;
Cell cell = Cell.From(bitsArray);
CellSlice slice = cell.Parse();
string bitsArray = /* bits array string representation */;
Cell cell = Cell.From(bitsArray);
Bits serializedCell = cell.Serialize();
string bitsArray = /* bits array string representation */;
Cell cell = Cell.From(bitsArray);
string base64Cell = cell.toString(); // by default, toString() converts cell to base64 format
string hexCell = cell.toString("hex");
string fiftBinCell = cell.toString("fiftBin");
string fiftHexCell = cell.toString("fiftHex");
string base64Cell1 = cell.toString("base64");
string base64urlCell = cell.toString("base64url");