C# 6.0 - Null propagation

— layout: post title: “C# 6.0 - Null propagation” date: 2014-08-21 00:03:00 comments: true tags: [CSharp, CSharp 6.0] keywords: “C#” description: “C# 6.0 - Null propagation” ...

August 21, 2014 · 1 min · 26 words · Larry Nung

C# 6.0 - Exception filters

Exception filters 是預計要在 C# 6.0 釋出的新功能,目前已可在 Visual Studio 14 中透過設定將功能開啟進行體驗,只要在方案檔中加上: ...

July 30, 2014 · 1 min · 435 words · Larry Nung

C# 6.0 - Using static members

Using static members 是預計要在 C# 6.0 釋出的新功能,目前已可在 Visual Studio 14 中透過設定將功能開啟進行體驗,只要在方案檔中加上: ...

July 21, 2014 · 1 min · 335 words · Larry Nung

C# 6.0 - Auto-property initializers

Auto-property initializers 是預計要在 C# 6.0 釋出的新功能,目前已可在 Visual Studio 14 中透過設定將功能開啟進行體驗,只要在方案檔中加上: ...

July 20, 2014 · 1 min · 335 words · Larry Nung

.NET - A Simple Finite State Machine Solution

想要用實現有限狀態機的功能,看了一下網路上的解決方案以及 State Pattern,覺得都不怎麼適用,因此利用 Tuple 與 Dictionary 去實作了一個簡易又可重複使用的 State Machine: ...

May 15, 2014 · 1 min · 432 words · Larry Nung

.NET - Access Embeded Resource

Embeded Resource 可以將程式需要的檔案內嵌在程式組件內,會增加組件的大小,但是使用者看不到該檔案,也不會因為檔案位置錯誤造成程式出錯。當系統中存在有必要的檔案,且不希望讓使用者能夠輕易動到的話, 使用 Embeded Resource 是不錯的選擇。 ...

April 14, 2014 · 1 min · 280 words · Larry Nung

ODP.NET - Oracle Data Provider for .NET

要用 C# 存取 Oracle,通常我們會使用 ODP.NET。 ...

April 6, 2014 · 1 min · 470 words · Larry Nung

WCF - Self hosting service

要 Self hosting WCF 的服務。首先要先將 System.ServiceModel 加入參考。 ...

April 3, 2014 · 1 min · 396 words · Larry Nung

T4 template - Auto generate ConnectionString's wrapper class

在 .Net 程式中要使用資料庫的連線字串,多半我們會將資料庫的連線字串設定在 Config 檔中,然後透過 ConfigurationManager.ConnectionStrings 帶入對應的 Key 去將之取出來使用。 ...

March 27, 2014 · 2 min · 533 words · Larry Nung

.NET 4.5 - Multicore JIT

以往我們的程式要增快啟動速度時,我們會使用 ngen 去產生原生映像檔,讓程式運行時改運行預先編譯過的原生映像檔,以減少 JIT 編譯的耗費。 ...

March 26, 2014 · 1 min · 429 words · Larry Nung