C# 클래스 FullSerializer.fsResult

The result of some sort of operation. A result is either successful or not, but if it is successful then there may be a set of warnings/messages associated with it. These warnings describe the performed error recovery operations.
파일 보기 프로젝트 열기: vikramkarthikeyan/voice-over-unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Success fsResult

공개 메소드들

메소드 설명
AddMessage ( string message ) : void

Adds a new message to this result.

AddMessages ( fsResult result ) : void

Adds only the messages from the other result into this result, ignoring the success/failure status of the other result.

AssertSuccess ( ) : fsResult

A simply utility method that will assert that this result is successful. If it is not, then an exception is thrown.

AssertSuccessWithoutWarnings ( ) : fsResult

A simple utility method that will assert that this result is successful and that there are no warning messages. This throws an exception if either of those asserts are false.

Fail ( string warning ) : fsResult

Create a result that failed.

Merge ( fsResult other ) : fsResult

Merges the other result into this one. If the other result failed, then this one too will have failed.

Note that you can use += instead of this method so that you don't bury the actual method call that is generating the other fsResult.

Warn ( string warning ) : fsResult

Create a result that is successful but contains the given warning message.

operator ( ) : fsResult

Only use this as +=!

메소드 상세

AddMessage() 공개 메소드

Adds a new message to this result.
public AddMessage ( string message ) : void
message string
리턴 void

AddMessages() 공개 메소드

Adds only the messages from the other result into this result, ignoring the success/failure status of the other result.
public AddMessages ( fsResult result ) : void
result fsResult
리턴 void

AssertSuccess() 공개 메소드

A simply utility method that will assert that this result is successful. If it is not, then an exception is thrown.
public AssertSuccess ( ) : fsResult
리턴 fsResult

AssertSuccessWithoutWarnings() 공개 메소드

A simple utility method that will assert that this result is successful and that there are no warning messages. This throws an exception if either of those asserts are false.
public AssertSuccessWithoutWarnings ( ) : fsResult
리턴 fsResult

Fail() 공개 정적인 메소드

Create a result that failed.
public static Fail ( string warning ) : fsResult
warning string
리턴 fsResult

Merge() 공개 메소드

Merges the other result into this one. If the other result failed, then this one too will have failed.
Note that you can use += instead of this method so that you don't bury the actual method call that is generating the other fsResult.
public Merge ( fsResult other ) : fsResult
other fsResult
리턴 fsResult

Warn() 공개 정적인 메소드

Create a result that is successful but contains the given warning message.
public static Warn ( string warning ) : fsResult
warning string
리턴 fsResult

operator() 공개 정적인 메소드

Only use this as +=!
public static operator ( ) : fsResult
리턴 fsResult

프로퍼티 상세

Success 공개적으로 정적으로 프로퍼티

A successful result.
public static fsResult Success
리턴 fsResult