mmType Class

OakLeaf.MM.Main.mmType

Allows you to determine if a value of any type is empty, and also returns an empty data value of a variety of types.

IsEmpty

Returns a boolean value indicating if the specified value is empty.

C#:

public static bool IsEmpty(bool value)
public static bool IsEmpty(char value)
public static bool IsEmpty(decimal value)
public static bool IsEmpty(double value)
public static bool IsEmpty(int value)
public static bool IsEmpty(long value)
public static string IsEmpty(string value)

VB .NET:

Public Shared Function IsEmpty(value As Boolean) As Boolean
Public Shared Function IsEmpty(value As Char) As Boolean
Public Shared Function IsEmpty(value As Decimal) As Boolean
Public Shared Function IsEmpty(value As Double) As Boolean
Public Shared Function IsEmpty(value As Integer) As Boolean
Public Shared Function IsEmpty(value As Long) As Boolean
Public Shared Function IsEmpty(value As String) As String

GetEmptyDataValue

Returns an empty value for the specified type

C#

public static object GetEmptyDataValue(Type type)

VB .NET:

Public Shared Function GetEmptyDataValue(type As Type) As Object

© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/27/18
Comment or report problem with topic