Introducing Semantic Types in .Net
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
Translated by maninwest@Codeforge Author:Matt Perdeck@CodeProject
Static typing is a great help in keeping your code bug free and maintainable. Take for example:
public int Mymethod(Person person) { ... }
A few good things are happening here:
- Documentation: You know right away that this method takes a Person and returns an integer.
- Machine Checking: The compiler has been told as well. That means that this is not just documentation that can get out of date. The compiler actually makes sure that what you're reading here is true.
- Tooling: Finally, Visual Studio has been told too - enabling you to quickly find out how Person is defined.
The problem is that out of the box,
c#
相关源码推荐
第186号:DX0110-小区物业管理系统源码
0
0
暂无评分
第219号:DX0149-小区物业管理系统源码
0
0
暂无评分
验证码识别
0
0
暂无评分
CSV数据分析工具
0
0
暂无评分
医院病历信息管理系统源码
0
0
暂无评分
暂无评论