private void Init(string kind, string message, Stack stack, IEnumerable<ExceptionData> innerExceptions)
{
Kind = kind;
Message = message;
if (stack != null)
{
Stack = new Stack(stack);
}
if (innerExceptions != null)
{
var destination_0 = new List<ExceptionData>();
foreach (var value_0 in innerExceptions)
{
if (value_0 == null)
{
destination_0.Add(null);
}
else
{
destination_0.Add(new ExceptionData(value_0));
}
}
InnerExceptions = destination_0;
}
}
}