CoreTypeMapping.GenerateCodeLiteral(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立運算式樹狀結構,可用來產生常值的程式碼。 目前僅支援非常基本的運算式,例如建構函式呼叫和採用簡單常數的 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
需要常值的值。
傳回
運算式樹狀結構,可用來產生常值的程式碼。