Creates a struct




    C# recipes

    The following code snippet declares a public struct named MyStruct. A public struct is a type that can be accessed by any other code in your program. The MyStruct structure has only one member, which is an int.

    Shortcut: struct

    public struct MyStruct
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.