Public Class ClassUtils
'''
''' Generates a random short (8 characters) guid
'''
''' The generated guid as a String
Public Shared Function ShortGUID() As String
Return Guid.NewGuid().ToString().GetHashCode().ToString("x")
End Function
'''
''' Converts a String value to the given Enum
'''
''' The Enum Type
''' The string value to convert
Public Shared Function ToEnum(Of T)(value As String) As T
Return [Enum].Parse(GetType(T), value)
End Function
End Class