C# Class PayPal.PayPalAPIInterfaceService.Model.EnumUtils

Utility class for Enums with descriptions
ファイルを表示 Open project: paypal/merchant-sdk-dotnet

Public Methods

Method Description
GetDescription ( Enum value ) : string

Get description for a give enum value

GetValue ( string value, Type enumType ) : object

Convert a string to an enum object

Method Details

GetDescription() public static method

Get description for a give enum value
public static GetDescription ( Enum value ) : string
value System.Enum
return string

GetValue() public static method

Convert a string to an enum object
public static GetValue ( string value, Type enumType ) : object
value string
enumType System.Type
return object