Click or drag to resize

imbPropertyCollectionExtensionstoPropertyCollection Method (IEnumerableEnum, String)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
From IEnumerable{Enum} makes PropertyCollection where Key is [!:Type.Name] and Value is the Enum or ToString(String) if format is specified

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static PropertyCollection toPropertyCollection(
	this IEnumerable<Enum> source,
	string format = null
)
Request Example View Source

Parameters

source
Type: System.Collections.GenericIEnumerableEnum
The source.
format (Optional)
Type: SystemString
The format for .ToString() conversion of the Enum value. If it is not null but empty string: the value will be ToString.

Return Value

Type: PropertyCollection

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableEnum. 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