B-Arts DocumentationIndice generale

BConvert

Identità

  • Namespace: B.BStatics

  • Assembly: BFramework

  • Tipo: class

  • Sorgente API: versione 5.0.0

Scopo

Espone operazioni statiche riutilizzabili tramite BConvert. Consultare gli overload prima di introdurre una funzione equivalente.

Dichiarazione

public static class BConvert

Metodi

  • static bool IsDBNull(object obj)

  • static bool IsNullOrDbNull(object? obj)

  • static bool IsNullOrDbNullOrWhiteSpace(object? obj)

  • static string ToBase64FromByte(byte[] imageByte, eMimeType mimeType = Png)

  • static byte[]? ToBinary(object? num, byte[]? NullValue = null)

  • static bool ToBool(object? obj, bool NullValue = false)

  • static bool? ToBoolNullable(object? obj)

  • static byte ToByte(object? num, byte NullValue = 0)

  • static byte[]? ToByteArray(string testo, string NomeEncoding = "UTF-8")

  • static byte[]? ToByteArrayFromStream(Stream input)

  • static byte[]? ToByteFromBase64(string Data, bool FromUrl = false)

  • static DateTime? ToDate(object? value, DateTime? NullValue = null)

  • static BDictionary<string, string> ToDictionary(string Source, string ItemsSeparator = ";", string KeyValueSeparator = ":")

  • static double ToDouble(object? num, double NullValue = 0)

  • static double? ToDoubleNullable(object? num)

  • static IEnumerable<object>? ToEnumerable(object? dataSource)

  • static string ToHexColor(BColor color, bool withoutAlpha = true)

  • static int ToInt(object? num, int NullValue = -1)

  • static long ToLong(object? num, long NullValue = -1)

  • static string ToMimeString(eMimeType mimeType)

  • static string ToString(object? obj, string NullValue = "")

  • static string ToStringFromByte(byte[] content, string NomeEncoding = "UTF-8")

  • static string ToStringFromStream(Stream st, string nomeEncoding = "UTF-8")

  • static Type? ToTypeFromClassName(string ClassName, Type? DefaultType = null, bool FindIntoAllAssembly = false)

  • static double ToValuta(object? num, double NullValue = 0, int RoundDecimal = 2)

Esempi

Consultare BConvert - Esempi.