using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
var files = new List<FileDto>();
var dict = new Dictionary<int, string>();
var enumerator = dict.GetEnumerator();
while(enumerator.MoveNext())
Console.WriteLine(enumerator.Current.Value);
files[i].CorrelationId = enumerator.Current.Key;
var arr = new Attachment[2];
arr[0] = new Attachment (1, "file1");
arr[1] = new Attachment (2, "file2");
for(int j = 0; j < arr.Length; j++)
files[i].CorrelationId = arr[i].Id;
public string Name { get; set; }
public string FileExchangeKey { get; set; }
public string FileType { get; set; }
public int CorrelationId { get; set; }
public FileDto(string name, string fileExchangeKey, string fileType)
FileExchangeKey = fileExchangeKey;
public int Id {get; set;}
public string Name { get; set; }
public Attachment(int id, string name)