Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name and ParametersDescriptionReturn TypeUsage Example
First()Gets first repository from the collectionRepository$Source.First().Url$"https://github.com/VSoftTechnologies/DUnitX.git"
First(string property, string operator, string value, [bool ignoreCase])

Gets first matching repository from the collection for given property using given operator. See list of valid operators below.

Repository$Source.First("type", Equals, "Git").Name$"DUnitX"
IsEmpty()Returns true if there are no repositories in the collectionBoolean

$Source.IsEmpty()$

False
Item(integer index)Gets a repository in the collection by zero-based index numberRepository$Source.Item(1).Name$"CISource"
Last()Gets last repository from the collectionRepository$Source.Last().Name$"FBSource"
Last(string property, string operator, string value, [bool ignoreCase])Gets last matching repository from the collection for given property using given operator. See list of valid operators below.Repository$Source.Last("url", Contains, "github", true).Path$"D:\ContinuaAgent\Ws\50605\Source\DUnitX"
Select(string property)Returns a string collection of property valuesString Collection$Source.Select(Name).Join(",")$"Repo1, Repo2, Repo3"
Where(string property, string operator, string value, [bool ignoreCase])Gets matching repositories from collection for given property using given operator. See list of valid operators below.Source Collection$Source.Where("type", Equals, "mercurial", True).First().Url$"\\SourceServer\Continua"

...