/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using System; namespace Kyrathasoft.Obfuscate { [Serializable] public class serText { //constructor public serText(string inputText, bool theWorks) { theText = inputText; if (!theWorks) { startIndex = 0; theLength = inputText.Length; reverse = false; shift = false; } else { reverse = true; shift = true; } } //constructor public serText(string inputText, int start, int length, bool reverse, bool shift) { theText = inputText; startIndex = start; theLength = length; this.shift = shift; this.reverse = reverse; } //constructor public serText(string inputText, int start, int length, bool theWorks) { theText = inputText; startIndex = start; theLength = length; if (theWorks) { this.shift = true; this.reverse = true; } } private string theText; public string TheText { get { return theText; } set { theText = value; } } private int startIndex; public int StartIndex { get { return startIndex; } set { startIndex = value; } } private int theLength; public int TheLength { get { return theLength; } set { theLength = value; } } private bool reverse; public bool Reverse { get { return reverse; } set { reverse = value; } } private bool shift; public bool Shift { get { return shift; } set { shift = value; } } } }