C# Class Exceptions.IgnoreErrorImplementation

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

Public Methods

Method Description
CharToInt ( char c ) : int

文字→整数

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

文字列→整数

Method Details

CharToInt() public static method

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

Main() public static method

public static Main ( ) : void
return void

StringToInt() public static method

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