![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Byte.MaxValue Field in C#
The Byte.MaxValue field in C# is used to represent the largest possible value of a Byte.
Syntax
Following is the syntax −
public const byte MaxValue = 255;
Example
Let us now see an example to implement the Byte.MaxValue field −
using System; public class Demo { public static void Main(){ byte val; val = Byte.MaxValue; Console.WriteLine("Maximum Value (Byte) = "+val); } }
Output
This will produce the following output −
Maximum Value (Byte) = 255
Advertisements