Click or drag to resize
ProjectionListExpressionAddElement Method (String, Object, Type, Int32, Boolean)
Adds the specified element to the projectionlist

Namespace: SD.LLBLGen.Pro.LinqSupportClasses.ExpressionClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
public int AddElement(
	string name,
	Object element,
	Type elementType,
	int elementIndex,
	bool recordDuplicateIndices
)

Parameters

name
Type: SystemString
The name.
element
Type: SystemObject
The element.
elementType
Type: SystemType
Type of the element.
elementIndex
Type: SystemInt32
Index of the element in the indices array to pass to the projection func.
recordDuplicateIndices
Type: SystemBoolean
if set to true record any found duplicate indices. This is true by default, but false if this method is called from a method which adds multiple fields per elementIndex

Return Value

Type: Int32
index in Elements to which the element has been added or the index of the element it was a duplicate of if it was already there
See Also