C# 클래스 StringFormatWithSpec, extensions

파일 보기 프로젝트 열기: netfx/extensions

공개 메소드들

메소드 설명
Format ( string format, object o ) : string

비공개 메소드들

메소드 설명
Eval_WithNamedExpressionAndFormat_EvalsPropertyOfExpression ( ) : void
Eval_WithNamedExpression_EvalsPropertyOfExpression ( ) : void
Format_WithDoubleEscapedEndFormatBraceWhichTerminatesString_ThrowsFormatException ( ) : void
Format_WithDoubleEscapedEndFormatBrace_ThrowsFormatException ( ) : void
Format_WithEmptyString_ReturnsEmptyString ( ) : void
Format_WithEndBraceFollowedByDoubleEscapedEndFormatBrace_FormatsCorrectly ( ) : void
Format_WithEndBraceFollowedByEscapedEndFormatBraceWhichTerminatesString_FormatsCorrectly ( ) : void
Format_WithEndBraceFollowedByEscapedEndFormatBrace_FormatsCorrectly ( ) : void
Format_WithEscapeSequence_EscapesInnerCurlyBraces ( ) : void
Format_WithEscapedEndFormatBrace_ThrowsFormatException ( ) : void
Format_WithExpressionReturningNull_DoesNotThrowException ( ) : void
Format_WithFormatNameNotInObject_ThrowsFormatException ( ) : void
Format_WithFormatType_ReturnsFormattedExpression ( ) : void
Format_WithNoEndFormatBrace_ThrowsFormatException ( ) : void
Format_WithNoFormats_ReturnsFormatStringAsIs ( ) : void
Format_WithNullFormatString_ThrowsArgumentNullException ( ) : void
Format_WithSubProperty_ReturnsValueOfSubProperty ( ) : void
StringFormat_WithDoubleEscapedCurlyBraces_DoesNotFormatString ( ) : void
StringFormat_WithFormatSurroundedByDoubleEscapedBraces_FormatsString ( ) : void
StringFormat_WithMultipleExpressions_FormatsThemAll ( ) : void

메소드 상세

Format() 공개 정적인 메소드

public static Format ( string format, object o ) : string
format string
o object
리턴 string