| BSL430.NET 1.3.4

Static Public Member Functions | List of all members
BSL430_NET.Extensions Class Reference

Extension class with some helpful methods. More...

## Static Public Member Functions
static string | ToHexString (this byte[] ba)
| Converts byte array to hex string. More...
static IEnumerable< Enum > | GetFlags (this Enum input)
| Gets all enum flags. More...
static string | GetEnumDescription (this Enum value)
| Gets enum string description. More...
static string | Truncate (this string value, int maxChars, string postfix="...")
| Truncate string with a postfix or three dots by default. More...

## Detailed Description

Extension class with some helpful methods.

## Member Function Documentation

## ◆ GetEnumDescription()

static string BSL430_NET.Extensions.GetEnumDescription | ( | this Enum | value | ) |
| static

Gets enum string description.

## ◆ GetFlags()

static IEnumerable<Enum> BSL430_NET.Extensions.GetFlags | ( | this Enum | input | ) |
| static

Gets all enum flags.

## ◆ ToHexString()

static string BSL430_NET.Extensions.ToHexString | ( | this byte[] | ba | ) |
| static

Converts byte array to hex string.

## ◆ Truncate()

static string BSL430_NET.Extensions.Truncate | ( | this string | value,
|  | int | maxChars,
|  | string | postfix = `"..."`
| ) |  |
| static

Truncate string with a postfix or three dots by default.

The documentation for this class was generated from the following file:

- D:/PROJECTS/C#/BSL430.NET/src/BSL430.NET/Extensions.cs