語言

EvaluationOptions.NullSubstitution 屬性

定義

取得或設定一個函數替換空值的選項。 如果指定了 nullSubstitution,LG 的評估器即使 strictMode 開啟,也不會拋出 null 例外。

public Func<string,object> NullSubstitution { get; set; }
member this.NullSubstitution : Func<string, obj> with get, set
Public Property NullSubstitution As Func(Of String, Object)

屬性值

一個功能。

適用於