Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Proper way to declare variables for the global variables in C#

$
0
0

Here is the top part of my code in my <script runat="server">. Did I declare the private constate variables properly or do I need an underscore?

<script runat="server">
    private const int portraitHeight = 900;
    private const int portraitWidth = 700;

    private const int landscapeHeight = 700;
    private const int landscapeWidth = 900;

</script>


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>