C# 8.0 Features

# C# 8.0 Features [C# 8.0 Features: A Glimpse of the Future](https://blog.ndepend.com/c-8-0-features-glimpse-future/)
[C# 8.0 Features: Another Glimpse of the Future](https://blog.ndepend.com/c-8-0-features-another-glimpse-future/)
[C# 8.0 Features: A Final Glimpse of the Future](https://blog.ndepend.com/c-8-0-features-a-final-glimpse/)
## Extension Everything - Original one: ```clike=
public static class ExtensionSomething { public static bool IsEven(this int value) { return value % 2 == 0; } } ```
- New one: ```clike= public extension ExtensionSomething extends int { public bool IsEven => this % 2 == 0; } ``` ---
## Default Implementation on Interfaces
## Nullable Refenrence Types
## Null Coalescing
## Records
## Target-typed "new" expressions
## Covariant return types

留言

這個網誌中的熱門文章

修改Skype存放對話記錄、檔案的資料夾位置

[C# .Net] 因應資料庫Byte長度,修改中英混雜的字串長度

[C# .Net] 是否需要用 BufferedStream 當做 FileStream 的緩衝?