I created a class with properties like this
public class Dependencies
{
public string issueID { get; set; }
public string status { get; set; }
public int dependencyCheck { get; set; }
}
Now I created a method where i can use these properties.
private static void prepareIssuesList(string IssueKey, string JIRAtoken)
{
Dependencies dpObj = new Dependencies();
List<Dependencies> listObj = new List<Dependencies>();
dpObj.issueID = IssueKey;
dpObj.status = "open";
dpObj.dependencyCheck = 0;
listObj.Add(dpObj);
}
Now my question is, how to change the dependencyCheck
property value. The prepareIssuesList()
can called for multiple times. So i am adding multiple objects to Dependencies class. At certain point of time i want to change the dependencyCheck property value. How to do this. I think need to use the Linq to C#. ICan any one have any solution for this one?