Declaring multiple fields together - CSharp Custom Type

CSharp examples for Custom Type:Field

Introduction

You may declare multiple fields of the same type in a comma-separated list.

For example:


class Animal
{
    static readonly int legs = 8, eyes = 2;
}
      

Related Tutorials