Click or drag to resize

imbPropertyCollectionExtensionsbuildPropertyCollectionList Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Builds the property collection list from IEnumerable source collection

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static PropertyCollectionList buildPropertyCollectionList(
	this IEnumerable source,
	bool doOnlyWithDisplayName,
	bool doInherited,
	string filedName_prefix = "",
	PropertyCollectionList output = null,
	params string[] fieldsOrCategoriesToShow
)
Request Example View Source

Parameters

source
Type: System.CollectionsIEnumerable
Any enumerable collection of any object with public properties
doOnlyWithDisplayName
Type: SystemBoolean
if set to true it will only include properties with declared DisplayNameAttribute .
doInherited
Type: SystemBoolean
if set to true it will get inherited propertis too.
filedName_prefix (Optional)
Type: SystemString
Name prefix to be applied before property name in order to be compatibile with templateField... enum type members
output (Optional)
Type: imbSCI.Core.collectionPropertyCollectionList
List with one PropertyCollection per each Object in source
fieldsOrCategoriesToShow
Type: SystemString
The fields or categories to show.

Return Value

Type: PropertyCollectionList
List of PropertyCollection with data obtained from source collection objects.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also