Click or drag to resize

ExtensionMethodsToString Method

Converts SerialCommPort to string. If you use custom port name, use SerialPort.SerialCommPortToString(SerialCommPort port) instead.

Namespace: ZylSoft.Serial
Assembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.86.9206.30146
Syntax
public static string ToString(
	this SerialCommPort port
)

Parameters

port  SerialCommPort
SerialCommPort value.

Return Value

String
String representation of the port.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SerialCommPort. 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