protected void AddOrChange(DestInitInfo inputInfo) { DestInitInfo info; if (changeDestinationToInfo.TryGetValue(inputInfo.ChangeDestination, out info)) { MakeLogWarning("Overwriting entry for ChangeDestination " + inputInfo.ChangeDestination); info.SupportedChangeTypes = inputInfo.SupportedChangeTypes; info.CalculateTotalChange = inputInfo.CalculateTotalChange; info.ApplyTotalChange = inputInfo.ApplyTotalChange; } else { changeDestinationToInfo.Add(inputInfo.ChangeDestination, inputInfo); } // trigger static initialization of the necessary BaseChangeInit-classes int i; for (i = 0; i < inputInfo.SupportedChangeTypes.Count; i++) { } }
public static bool TryGetDestInitInfo(ChangeDestination changeDest, out DestInitInfo info) { return(changeDestinationToInfo.TryGetValue(changeDest, out info)); }