Method IntToPtrExpression
IntToPtrExpression(Constant, ITypeRef)
Gets an IntToPtr expression to convert an integral value to a pointer
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Specific type required by interop call")]
public static Constant IntToPtrExpression(Constant value, ITypeRef type)
Parameters
valueConstantConstant value to cast to a pointer
typeITypeRefType of the pointer to cast
valueto
Returns
- Constant
New pointer constant