C# Class Pchp.CodeAnalysis.ConstantValueExtensions

显示文件 Open project: iolevel/peachpie

Public Methods

Method Description
ToConstantValueOrNull ( this value ) : ConstantValue

Tries to convert value to a ConstantValue if possible. Argument that doesn't have value or values which cannot be represented as ConstantValue causes a null reference to be returned.

Method Details

ToConstantValueOrNull() public static method

Tries to convert value to a ConstantValue if possible. Argument that doesn't have value or values which cannot be represented as ConstantValue causes a null reference to be returned.
public static ToConstantValueOrNull ( this value ) : ConstantValue
value this Optional boced value.
return ConstantValue