Em Andamento

How do I make the return type of a method generic?

Is there a way to make this method generic so I can return a string, bool, int, or double? Right now, it's returning a string, but if it's able find "true" or "false" as the configuration value, I'd like to return a bool for example.

public static string ConfigSetting(string settingName)

{

return [url removed, login to view][settingName];

}

Habilidades: .NET, ASP.NET, Programação C#

Ver mais: string find c, programming method, method programming, int i, how to string, generic programming, type mba projects make money uk, type image capture make money, different type programming method plc, provide bookkeeping services type income report tax return, itemadded sharepoint return type, oscommerce payment method depends delivery type, ejb3 webservice development return type, call dllimport return type, excel vba return xml data type, magento credit card type allowed payment method

Acerca do Empregador:
( 143 comentários ) SANGRUR, India

ID do Projeto: #8408366