本文介绍了比这更优雅的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你好,我有这个功能,下面简单易懂 私有函数ListHeight(byval UserScreenHeight as int)as int if UserScreenHeight < 1024 返回30 其他 返回50 结束如果 结束功能 这是非常实用的,但对我来说似乎很蹩脚,就像我可以做得更好。 有更多的专业方式或优雅这样做的方法是什么? Ed 解决方案 hello, I have this function below which is simple and easy to understandprivate function ListHeight (byval UserScreenHeight as int) as intif UserScreenHeight < 1024return 30elsereturn 50end ifend functionIt is very functional but seems pretty lame to me, like I could do better.is there a more "professional" way or "elegant" way to do this?Ed 解决方案 这篇关于比这更优雅的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!