Method CreateNamedConstantStruct
CreateNamedConstantStruct(IStructType, params IEnumerable<Constant>)
Creates a constant instance of a specified structure type from a set of values
public Constant CreateNamedConstantStruct(IStructType type, params IEnumerable<Constant> values)
Parameters
typeIStructTypeType of the structure to create
valuesIEnumerable<Constant>Set of values to use in forming the structure
Returns
Remarks
note
The actual concrete return type depends on the parameters provided and will be one of the following:
| Constant derived type | Description |
|---|---|
| ConstantAggregateZero | If all the member values are zero constants |
| UndefValue | If all the member values are UndefValue |
| ConstantStruct | All other cases |