Byte.Equals Method returns a value indicating whether this instance and a specified Byte object represent the same value. : Byte « Data Types « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Data Types » ByteScreenshots 
Byte.Equals Method returns a value indicating whether this instance and a specified Byte object represent the same value.
 

Imports System

Class Sample
    Public Shared Sub Main() 
        Dim byteVal1 As Byte = &H7F
        Dim byteVal2 As Byte = 127
        Dim objectVal3 As Object = byteVal2
        Console.WriteLine("byteVal1 = {0}, byteVal2 = {1}, objectVal3 = {2}" & vbCrLf,byteVal1, byteVal2, objectVal3)
        Console.WriteLine("byteVal1 equals byteVal2?: {0}", byteVal1.Equals(byteVal2))
        Console.WriteLine("byteVal1 equals objectVal3?: {0}", byteVal1.Equals(objectVal3))
    End Sub
End Class

   
  
Related examples in the same category
1.Insert xByte to StringBuilder
2.Generic and nongeneric versions of the CompareTo method for Byte value
3.Use the Sign(Byte) method to determine the sign of a byte value and display it to the console.
4.Byte Structure Represents an 8-bit unsigned integer.
5.Convert Integer to Byte
6.Convert Double to Byte
7.Use Convert class to convert Integer to Byte
8.Parse string to Byte
9.Parse Hex Number String to Byte
10.Convert Byte to String with default format
11.Display Byte value with 3 digits and leading zeros
12.Display byte value with hexadecimal
13.Display byte value with four hexadecimal digits
14.Display Byte Value as Binary, Octal and Hex Numbers
15.Parse Hex string to Byte
16.Bit and operation for Byte
17.Convert Hex byte value to Hex string
18.Byte.MaxValue
19.Byte.ToString Method converts Byte to string using culture-specific formatting information.
20.Byte.ToString (String) converts Byte to string using the specified format.
21.Byte.ToString converts Byte to string using the specified format and culture-specific formatting information.
22.Byte.ToString converts Byte to string representation.
23.Byte.TryParse tries to convert string to Byte and returns a value that indicates whether the conversion succeeded.
24.Byte.TryParse converts string in a style and culture-specific format to Byte
25.Convert Double to Byte with CByte
26.Parse string to Byte
27.Parse string to Byte as System.Globalization.NumberStyles.HexNumber
28.Byte format: D3, X2 and X4
29.Format Byte to Binary, Octal and Hex string
30.Byte value binary And operation
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.