Click or drag to resize

imbPathExtensionsgetCommonRoot Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns common part of the path - the root that both paths are sharing

Namespace:  imbSCI.Data.extensions.data
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static string getCommonRoot(
	this string xPathA,
	string xPathB,
	bool includeAbsolute = false,
	string splitter = ""
)
Request Example View Source

Parameters

xPathA
Type: SystemString
xPathB
Type: SystemString
includeAbsolute (Optional)
Type: SystemBoolean
splitter (Optional)
Type: SystemString

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 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