C# 클래스 Exceptions.IgnoreErrorImplementation

不正な文字列とか気にせず、変な値が返ってくるのを許容する実装。 利用者側が気を付けて使ってられる範囲なら案外ありな実装。 大規模化・汎用化してきたらはまる。
파일 보기 프로젝트 열기: ufcpp/UfcppSample

공개 메소드들

메소드 설명
CharToInt ( char c ) : int

文字→整数

Main ( ) : void
StringToInt ( string str ) : int

文字列→整数

메소드 상세

CharToInt() 공개 정적인 메소드

文字→整数
public static CharToInt ( char c ) : int
c char
리턴 int

Main() 공개 정적인 메소드

public static Main ( ) : void
리턴 void

StringToInt() 공개 정적인 메소드

文字列→整数
public static StringToInt ( string str ) : int
str string
리턴 int