mirror of
https://github.com/inthehand/32feet.git
synced 2026-10-19 06:58:26 +08:00
574ed69020
helper methods/properties
22 lines
476 B
C#
22 lines
476 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace IOBluetooth
|
|
{
|
|
public partial class BluetoothDevice
|
|
{
|
|
public BluetoothDeviceAddress Address
|
|
{
|
|
get
|
|
{
|
|
return (BluetoothDeviceAddress)Marshal.PtrToStructure(GetAddress(), typeof(IOBluetooth.BluetoothDeviceAddress));
|
|
}
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return this.NameOrAddress;
|
|
}
|
|
}
|
|
}
|