Creates a class




    C# recipes

    The class keyword indicates that the following is a class. Inside of the class, there is a code block that contains the class declaration. This code block tells the interpreter that this class exists and provides some basic information about the class.

    Shortcut: class

    public class MyClass
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.