CSharpCommentUncommentService.cs 980 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Composition;
using Microsoft.CodeAnalysis.Editor.Implementation.CommentSelection;
using Microsoft.CodeAnalysis.Host.Mef;

namespace Microsoft.CodeAnalysis.Editor.CSharp.CommentSelection
{
    [ExportLanguageService(typeof(ICommentUncommentService), LanguageNames.CSharp), Shared]
    internal class CSharpCommentUncommentService : AbstractCommentUncommentService
    {
        public override string SingleLineCommentString
        {
            get { return "//"; }
        }

        public override bool SupportsBlockComment
        {
            get { return true; }
        }

        public override string BlockCommentStartString
        {
            get { return "/*"; }
        }

        public override string BlockCommentEndString
        {
            get { return "*/"; }
        }
    }
}