C# Class Pchp.CodeAnalysis.ConstantValueExtensions

Afficher le fichier Open project: iolevel/peachpie

Méthodes publiques

Méthode 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 méthode

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.
Résultat ConstantValue