var failed = Client.FailedBuildsByBuildConfigId(buildConfig.Id).ToString();
This is how the list is created. I am using TeamCity Sharp, and I’m a newbie. What gets returned is:
System.Collections.Generic.List`1[TeamCitySharp.DomainEntities.Build]
I want to find the string ‘FAILURE’ in the list. How do I go about doing so?
Try:
I don’t know the output of that class, but if
ToString()does not, in fact, return theStatus(or StatusText), do one of these instead:or