Click or drag to resize

imbStringExtensionsgetProperString Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Choose first non null and not empty String from primaryCandidate and other candidates

Namespace:  imbSCI.Core.extensions.text
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string getProperString(
	this string primaryCandiate,
	params string[] candidates
)
Request Example View Source

Parameters

primaryCandiate
Type: SystemString
The primary candiate.
candidates
Type: SystemString
The candidates.

Return Value

Type: String
The first string found to be not null and not empty

Usage Note

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