CodeModel2.IsCaseSensitive Property


Gets a value indicating whether the current language is case-sensitive.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

bool IsCaseSensitive { get; }

Property Value

Type: System.Boolean

A Boolean that is true if the current language is case-sensitive; otherwise, false.


The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same.

public void IsCaseSensitiveExample(DTE2 dte)
    // Before running this example, open a solution that contains one 
    // or more projects.
    string msg = "";
    foreach (Project proj in dte.Solution.Projects)
        if (proj.CodeModel.IsCaseSensitive)
            msg += proj.Name + " uses a case-sensitive language" + 
            msg += proj.Name + " uses a case-insensitive language" + 

    // Display the case-sensitivity of the solution's projects.
Return to top