コード例 #1
0
ファイル: SvnBase.cs プロジェクト: mendix/LibSvnSharp
        internal static apr_array_header_t AllocDirentArray(ICollection <string> paths, AprPool pool)
        {
            if (paths == null)
            {
                throw new ArgumentNullException(nameof(paths));
            }
            if (pool == null)
            {
                throw new ArgumentNullException(nameof(pool));
            }
            if (paths.Any(s => s == null))
            {
                throw new ArgumentException(SharpSvnStrings.ItemInListIsNull, nameof(paths));
            }

            var aprPaths = new AprArray <string, AprCStrDirentMarshaller>(paths, pool);

            return(aprPaths.Handle);
        }
コード例 #2
0
ファイル: SvnBase.cs プロジェクト: mendix/LibSvnSharp
        internal static apr_array_header_t AllocCopyArray <TSvnTarget>(ICollection <TSvnTarget> targets, AprPool pool)
            where TSvnTarget : SvnTarget
        {
            if (targets == null)
            {
                throw new ArgumentNullException(nameof(targets));
            }

            foreach (SvnTarget s in targets)
            {
                if (s == null)
                {
                    throw new ArgumentException(SharpSvnStrings.ItemInListIsNull, nameof(targets));
                }
            }

            var aprTargets = new AprArray <SvnTarget, SvnCopyTargetMarshaller>(targets, pool);

            return(aprTargets.Handle);
        }