public object GetPendingSets(RecursionType recursion) { MethodInfo getPendingSetsMethod = _type.GetMethod("GetPendingSets", new[] { typeof(string[]), recursion.Type }); string[] items = new string[1]; items[0] = @"$/"; return getPendingSetsMethod.Invoke(_instance, new[] { items, recursion.Instance }); }
public IEnumerable QueryHistory(string localPath, VersionSpec version, RecursionType recursion, WorkspaceVersionSpec toVersion) { Type[] parameterTypes = new[] { typeof(string), version.Type, typeof(int), recursion.Type, typeof(string), toVersion.Type, toVersion.Type, typeof(int), typeof(bool), typeof(bool) }; MethodInfo queryHistoryMethod = _type.GetMethod("QueryHistory", parameterTypes); IEnumerable history = (IEnumerable)queryHistoryMethod.Invoke( _instance, new[] { localPath, version.Instance, 0, recursion.Instance, null, null, toVersion.Instance, int.MaxValue, false, false } ); return history; }