private static void AddError(ref List <ErrorDetails> errorDetails, ErrorDetails.ErrorType type, Task task, string fieldName) { if (errorDetails == null) { errorDetails = new List <ErrorDetails>(); } errorDetails.Add(new ErrorDetails(type, task, fieldName)); }
public ErrorDetails(ErrorDetails.ErrorType type, Task task, string fieldName) { this.type = type; this.nodeDesigner = (task.NodeData.NodeDesigner as NodeDesigner); this.taskFriendlyName = task.FriendlyName; this.taskType = task.GetType().ToString(); this.fieldName = fieldName; }
// Token: 0x06000172 RID: 370 RVA: 0x0000CE0C File Offset: 0x0000B00C public ErrorDetails(ErrorDetails.ErrorType type, Task task, int index, string fieldName) { this.mType = type; if (task != null) { this.mNodeDesigner = (task.NodeData.NodeDesigner as NodeDesigner); this.mTaskFriendlyName = task.FriendlyName; this.mTaskType = task.GetType().ToString(); } this.mIndex = index; this.mFieldName = fieldName; }