File: Editing\TypeConstraintKind.cs
Web Access
Project: src\roslyn\src\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj (Microsoft.CodeAnalysis.Workspaces)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;

namespace Microsoft.CodeAnalysis.Editing;

[Flags]
public enum SpecialTypeConstraintKind
{
    None = 0x0000,

    /// <summary>
    /// Has the reference type constraint (i.e. 'class' constraint in C#)
    /// </summary>
    ReferenceType = 0x0001,

    /// <summary>
    /// Has the value type constraint (i.e. 'struct' constraint in C#)
    /// </summary>
    ValueType = 0x0002,

    /// <summary>
    /// Has the constructor constraint (i.e. 'new' constraint in C#)
    /// </summary>
    Constructor = 0x0004,
}