Method CreateNamedConstantStruct
CreateNamedConstantStruct(IStructType, Constant[])
Creates a constant instance of a specified structure type from a set of values
Declaration
public Constant CreateNamedConstantStruct(IStructType type, params Constant[] values)
Parameters
public Constant CreateNamedConstantStruct(IStructType type, params Constant[] values)
IStructType | type | Type of the structure to create |
Constant[] | values | Set of values to use in forming the structure |
Returns
Constant | Newly created Constant |
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 |
CreateNamedConstantStruct(IStructType, IEnumerable<Constant>)
Creates a constant instance of a specified structure type from a set of values
Declaration
public Constant CreateNamedConstantStruct(IStructType type, IEnumerable<Constant> values)
Parameters
public Constant CreateNamedConstantStruct(IStructType type, IEnumerable<Constant> values)
IStructType | type | Type of the structure to create |
IEnumerable<Constant> | values | Set of values to use in forming the structure |
Returns
Constant | Newly created Constant |
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 |