Sends for the fellow dear visitors:welcome to dongpad!


 Welcome to DongPad!

 msn


预览模式: 普通 | 列表

C#小技巧:设置方法或属性为[已过时]

在C#中,如果有一个方法我们不想继续使用,需要废弃的时候,可以在该方法前面加上一个[Obsolete]。例如:[Obsolete]
public double GetArea()
{
switch (_arg)
{
case CIRCLE:
return _size * _size;
case SQUARE:
return _size * _size;
case RIGHT_TRIANGLE:
return _size * _size / 2;
default:
return 0;
}
}
这时候,如果还有程序使用该方法,编译时会报如下警告信息:GetArea()方法已过时。
From Terrylee's cnblogs!


Tags: DongPad 过时

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 786 | 返回顶部

Foundations of F#

This Article is Published by Live Writer。

Functional programming (FP) is the future of .NET programming, and F# is much more than just an FP language. Every professional .NET programmer needs to learn about FP, and there's no better way to do it than by learning F#--and no easier way to learn F# than from Foundations of F#.

If you're already familiar with FP, you'll find F# the language you've always dreamed of. And all .NET programmers will find F# an exciting real-world alternative to C# and Visual Basic. This book is likely to have many imitators, but few true competitors. Written by F# evangelist Rob Pickering, and tech reviewed by F#'s main designer, Don Syme, this is an elegant, comprehensive introduction to all aspects of the language and an incisive guide to using F# for real-world professional development. F# is the future of programming (not just on .NET), and the future is now.

Download by click here or here!

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 399 | 返回顶部