PhysicalAddress.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two PhysicalAddress instances.
public:
override bool Equals(System::Object ^ comparand);
public override bool Equals (object? comparand);
public override bool Equals (object comparand);
override this.Equals : obj -> bool
Public Overrides Function Equals (comparand As Object) As Boolean
Parameters
- comparand
- Object
The PhysicalAddress to compare to the current instance.
Returns
true
if this instance and the specified instance contain the same address; otherwise false
.
Examples
The following code example compares two PhysicalAddress instances.
void ParseTest()
{
PhysicalAddress^ address = PhysicalAddress::Parse( L"AC1EBA22" );
Console::WriteLine( L"Address parsed as {0}", address->ToString() );
PhysicalAddress^ address2 = PhysicalAddress::Parse( L"ac1eba22" );
Console::WriteLine( L"Address2 parsed as {0}", address2->ToString() );
bool test = address->Equals( address2 );
Console::WriteLine( L"Equal? {0}", test );
}
public static void ParseTest()
{
PhysicalAddress address = PhysicalAddress.Parse("AC1EBA22");
Console.WriteLine("Address parsed as {0}", address.ToString());
PhysicalAddress address2 = PhysicalAddress.Parse("ac1eba22");
Console.WriteLine("Address2 parsed as {0}", address2.ToString());
bool test = address.Equals(address2);
Console.WriteLine("Equal? {0}", test);
}
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.