StringBufferExtensionsCleanMacAddress Method

Cleans a MAC address string by removing whitespace, invalid characters, and normalizing separators.

Definition

Namespace: MobileTrack.Receiver.Extensions
Assembly: MobileTrack.Receiver (in MobileTrack.Receiver.exe) Version: 0.8+f6fd7a919db8417bc1e7bfd9b2ff9ab9586e296a
public static string CleanMacAddress(
	this string? mac
)

Parameters

mac  String
The MAC address string to clean.

Return Value

String
The cleaned and normalized MAC address string.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also