C# 클래스 Appccelerate.Formatters.FormatHelper

Provides functionality for formatting strings.
파일 보기 프로젝트 열기: appccelerate/appccelerate

공개 메소드들

메소드 설명
ConvertToString ( object>.IDictionary dictionary, string separator ) : string

Converts a dictionary of object, object to a string representation in the form of Key=Valueseparator.

ConvertToString ( IEnumerable collection, string separator ) : string

Converts a collection of objects to a string representation.

SecureFormat ( IFormatProvider formatProvider, string format ) : string

Replacement for the String.Format method, that throws an exception when the count of arguments does not match the count of placeholders.

If format and/or arguments are null then still a string is returned.

Tries to format with String.Format. In case of an Exception the original format string and all parameters added in a list will be returned.

메소드 상세

ConvertToString() 공개 정적인 메소드

Converts a dictionary of object, object to a string representation in the form of Key=Valueseparator.
public static ConvertToString ( object>.IDictionary dictionary, string separator ) : string
dictionary object>.IDictionary The dictionary.
separator string The separator to separate key value pairs.
리턴 string

ConvertToString() 공개 정적인 메소드

Converts a collection of objects to a string representation.
public static ConvertToString ( IEnumerable collection, string separator ) : string
collection IEnumerable Collection of objects.
separator string Separator to separate objects.
리턴 string

SecureFormat() 공개 정적인 메소드

Replacement for the String.Format method, that throws an exception when the count of arguments does not match the count of placeholders.

If format and/or arguments are null then still a string is returned.

Tries to format with String.Format. In case of an Exception the original format string and all parameters added in a list will be returned.
public static SecureFormat ( IFormatProvider formatProvider, string format ) : string
formatProvider IFormatProvider /// The format Provider. ///
format string /// The format string. ///
리턴 string