Click or drag to resize

imbStringCollectionExtensionsAddFirstOrT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Adds the value into IDictionary under first valid key specified with first and orThese parameters. Returns key value that was finally applied.

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string AddFirstOr<T>(
	this IDictionary<string, T> target,
	string first,
	T value,
	params string[] orThese
)
Request Example View Source

Parameters

target
Type: System.Collections.GenericIDictionaryString, T
The target.
first
Type: SystemString
The first.
value
Type: T
The value.
orThese
Type: SystemString
The or these.

Type Parameters

T

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryString, T. 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).
Exceptions
ExceptionCondition
[!:aceCommonTypes.core.exceptions.aceGeneralException]None of these argument is value - null - AddFirstOr(first, ... orThese others)
See Also