private bool TryCreateTrackedAction(string typeString, out ITrackedAction action) { Assembly assembly = Assembly.GetExecutingAssembly(); action = null; foreach (Type type in assembly.GetTypes()) { if (!typeof(ITrackedAction).IsAssignableFrom(type)) { continue; } if (type.ToString() != typeString) { continue; } action = Activator.CreateInstance(type) as ITrackedAction; return(true); } return(false); }
public void RemoveFileEdit(CacheFile targetFile, ITrackedAction editAction) { }