AutoMerge.Settings.CommentFormatGet C# (CSharp) Méthode

CommentFormatGet() private méthode

private CommentFormatGet ( ) : AutoMerge.CommentFormat
Résultat AutoMerge.CommentFormat
        private CommentFormat CommentFormatGet()
        {
            string commentFormat;
            if (!_settingProvider.TryReadValue(commentFormatKey, out commentFormat))
            {
                commentFormat = commentFormatDefault;
            }

            string commentFormatDiscard;
            if (!_settingProvider.TryReadValue(commentFormatDiscardKey, out commentFormatDiscard))
            {
                commentFormatDiscard = commentFormatDiscardDefault;
            }

            commentFormatDiscard = commentFormatDiscard.Replace("{" + commentFormatKey + "}", commentFormat);

            string branchDelimiter;
            if (!_settingProvider.TryReadValue(branchDelimiterKey, out branchDelimiter))
            {
                branchDelimiter = branchDelimiterDefault;
            }

            return new CommentFormat
            {
                Format = commentFormat,
                BranchDelimiter = branchDelimiter,
                DiscardFormat = commentFormatDiscard
            };
        }