You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
405 B
C#
18 lines
405 B
C#
namespace WebMVCApi.Services
|
|
{
|
|
public class CalculateService
|
|
{
|
|
private string[] files;
|
|
|
|
public CalculateService() {
|
|
this.files = Directory.GetFiles("D:\\Program Files", "*.exe",SearchOption.AllDirectories);
|
|
}
|
|
|
|
public int Add(int a, int b) { return a+b; }
|
|
public int Count {
|
|
get { return files.Length; }
|
|
}
|
|
|
|
}
|
|
}
|