 | ExtensionMethodskCaesar Method |
Places a Caesar shift cipher on a string of a specified number of shifts.
Namespace:
Koden.Utils.Extensions
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static string kCaesar(
this string source,
short shift
)
<ExtensionAttribute>
Public Shared Function kCaesar (
source As String,
shift As Short
) As String
public:
[ExtensionAttribute]
static String^ kCaesar(
String^ source,
short shift
)
[<ExtensionAttribute>]
static member kCaesar :
source : string *
shift : int16 -> string
Parameters
- source
- Type: SystemString
The source. - shift
- Type: SystemInt16
The number to shift.
Return Value
Type:
StringCaesar ciphered string
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also