Extension class with some helpful methods.
More...
|
| 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...
|
| |
Extension class with some helpful methods.
◆ 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 |
◆ 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