-7

here is an example,

public string a_UId, a_ProgramID, a_BuildingID, a_UserName, a_Level;    
public long b_Linetype= 0, b_TotalLine = 0;
Sergey Berezovskiy
  • 224,436
  • 37
  • 411
  • 441

2 Answers2

4

You're not "declaring a string with more than one value". You're declaring several different variables. It's really important to differentiate between variables and values.

So:

public string x, y, z;

is equivalent to:

public string x;
public string y;
public string z;

(As an aside, I'd strongly advise you to ditch the prefixes, and make all fields private.)

Jon Skeet
  • 1,335,956
  • 823
  • 8,931
  • 9,049
2

it is a shorthand for:

type variable1;
type variable2;
...
Selman Genç
  • 97,365
  • 13
  • 115
  • 182