Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Why is there a need to declare GlobalValue on C#?

public static string _globalValue;

public string GlobalValue

{

get

{

return _globalValue;

}

set

{

_globalValue = value;

}

}

Why do I need to declare these on C# while on VB I could just declare "Public GlobalValue"?

Are there any rules in programming that are being followed?

1 Answer

Relevance
  • Anonymous
    9 years ago
    Favorite Answer

    So the variables that have the correct structure runs correctly.

Still have questions? Get your answers by asking now.