Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform SUM over array of objects #9

Open
lbdm opened this issue Jun 13, 2019 · 0 comments
Open

Perform SUM over array of objects #9

lbdm opened this issue Jun 13, 2019 · 0 comments

Comments

@lbdm
Copy link

lbdm commented Jun 13, 2019

Hi,

I need to create a rule to sum a property of an array of objects.
For example:

public class Stops(){
public string Description {get;set;}
public int Duration {get;set;}
public int Type {get;set;}
}

var array = new Stops[4];
.....

I need to write rule to sum the property Duration where Type==1 for example.
How can I do?
thanks to give me an example.
Laura

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant