CSharp examples for System:Int32
Encodes the Int32 data given.
using System.Text; using System.Linq; using System.Collections.Generic; using System;/*from w w w . j a v a2 s.c om*/ public class Main{ /* Encoding Functions */ #region Encoding/Cipher Methods /// <summary> /// Encodes the Int32 data given. /// </summary> /// <param name="v">The raw/decoded data.</param> /// <returns>Encoded data.</returns> public static string EncodeInt32(int v) { string t = ""; return ((t + ((char)(v >> 0x18)) + ((char)(v >> 0x10))) + ((char)(v >> 8)) + ((char)v)); } }