C# 클래스 Evbpc.Framework.Utilities.Extensions.StringExtensions

Provides extensions to convert certain objects to certain other objects.
파일 보기 프로젝트 열기: EBrown8534/Framework

공개 메소드들

메소드 설명
BuildQueryString ( string>.Dictionary values ) : string
FromBase64String ( this input, Base64FormattingOptions options = Base64FormattingOptions.RequirePaddingCharacter ) : byte[]

Converts an RFC4648 (https://tools.ietf.org/html/rfc4648) Base64 string to a byte-array.

GetCharacterType ( this c ) : CharacterType
HexToByteArray ( this hex ) : byte[]

Converts a hexadecimal string to a byte array.

InsertOnCharacter ( this source, CharacterType type, string insert ) : string

Inserts a string into another string before each occurrence of the specified CharacterType.

In the case of the first character of source matching the specified CharacterType, the insert will not be inserted.

StringArrayToHexArray ( this input ) : string[]

Converts a string array to a hexadecimal array.

ToBase32String ( this input, Base32FormattingOptions options = Base32FormattingOptions.RequirePaddingCharacter ) : string

Converts a byte-array to an RFC4648 (https://tools.ietf.org/html/rfc4648) Base32 string.

ToBase64String ( this input, Base64FormattingOptions options = Base64FormattingOptions.RequirePaddingCharacter, uint charactersPerLine ) : string

Converts a byte-array to an RFC4648 (https://tools.ietf.org/html/rfc4648) Base64 string.

ToHexString ( this input ) : string

Converts a byte array to a hexadecimal string.

ToPascalCase ( this s ) : string

Converts a string of dash-separated, or underscore-separated words to a PascalCase string.

메소드 상세

BuildQueryString() 공개 정적인 메소드

public static BuildQueryString ( string>.Dictionary values ) : string
values string>.Dictionary
리턴 string

FromBase64String() 공개 정적인 메소드

Converts an RFC4648 (https://tools.ietf.org/html/rfc4648) Base64 string to a byte-array.
public static FromBase64String ( this input, Base64FormattingOptions options = Base64FormattingOptions.RequirePaddingCharacter ) : byte[]
input this The input string.
options Base64FormattingOptions Any of enumeration values.
리턴 byte[]

GetCharacterType() 공개 정적인 메소드

public static GetCharacterType ( this c ) : CharacterType
c this
리턴 CharacterType

HexToByteArray() 공개 정적인 메소드

Converts a hexadecimal string to a byte array.
public static HexToByteArray ( this hex ) : byte[]
hex this The hexadecimal string to convert.
리턴 byte[]

InsertOnCharacter() 공개 정적인 메소드

Inserts a string into another string before each occurrence of the specified CharacterType.
In the case of the first character of source matching the specified CharacterType, the insert will not be inserted.
public static InsertOnCharacter ( this source, CharacterType type, string insert ) : string
source this The string to insert into.
type CharacterType The to insert before.
insert string The string to insert.
리턴 string

StringArrayToHexArray() 공개 정적인 메소드

Converts a string array to a hexadecimal array.
public static StringArrayToHexArray ( this input ) : string[]
input this The array to convert.
리턴 string[]

ToBase32String() 공개 정적인 메소드

Converts a byte-array to an RFC4648 (https://tools.ietf.org/html/rfc4648) Base32 string.
public static ToBase32String ( this input, Base32FormattingOptions options = Base32FormattingOptions.RequirePaddingCharacter ) : string
input this The input byte-array.
options Base32FormattingOptions Any of enumeration values.
리턴 string

ToBase64String() 공개 정적인 메소드

Converts a byte-array to an RFC4648 (https://tools.ietf.org/html/rfc4648) Base64 string.
public static ToBase64String ( this input, Base64FormattingOptions options = Base64FormattingOptions.RequirePaddingCharacter, uint charactersPerLine ) : string
input this The input byte-array.
options Base64FormattingOptions Any of enumeration values.
charactersPerLine uint If this is a non-zero uinteger, than the number of characters per line will be equivalent to this value.
리턴 string

ToHexString() 공개 정적인 메소드

Converts a byte array to a hexadecimal string.
public static ToHexString ( this input ) : string
input this The byte array to convert.
리턴 string

ToPascalCase() 공개 정적인 메소드

Converts a string of dash-separated, or underscore-separated words to a PascalCase string.
public static ToPascalCase ( this s ) : string
s this The string to convert.
리턴 string