共用方式為


CoreTypeMapping.GenerateCodeLiteral(Object) 方法

定義

建立運算式樹狀結構,可用來產生常值的程式碼。 目前僅支援非常基本的運算式,例如建構函式呼叫和採用簡單常數的 Factory 方法。

public virtual System.Linq.Expressions.Expression GenerateCodeLiteral (object value);
abstract member GenerateCodeLiteral : obj -> System.Linq.Expressions.Expression
override this.GenerateCodeLiteral : obj -> System.Linq.Expressions.Expression
Public Overridable Function GenerateCodeLiteral (value As Object) As Expression

參數

value
Object

需要常值的值。

傳回

運算式樹狀結構,可用來產生常值的程式碼。

適用於