Man*_*ani 2 methods naming-conventions
我正在创建一个业务项格式化程序(传播),其中显示我希望在将它乘以100之后显示数字,并且为了所有计算目的,我想从显示(TextBox)读取数字,将其解析为double然后除以它100.
SpreadFormatter {
public string Format(double originalValue){
//Please dont mind this logic/approach. I am just represeting the scenario.
return (originalValue * 100).ToString();
}
public double SuggestAName(string currentValue){
//Please dont mind this logic/approach. I am just represeting the scenario.
return Double.Parse(currentValue)/100 ;
}
}
Run Code Online (Sandbox Code Playgroud)
我正在寻找上面"SuggestAName"方法的合适名称.
谢谢你的关注.