General information
Category:
Coding, syntax and commands
Hi Tim
Here's a version in VB.Net....TransferType is the enum.
Public Shared Function GetTransferType(ByVal value As String) As TransferType
Dim theTransferType As TransferType
Try
theTransferType = CType(System.Enum.Parse(GetType(TransferType), value, True), TransferType)
Catch ex As Exception
theTransferType = TransferType.Unknown
End Try
Return theTransferType
End Function
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only