public int GetAppIdInt32 <T>(T value) where T : IConvertible { using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "GetGmuId")) { int result = default(int); try { IFFEnumParser parser = _parsers.GetValueFromKey1(typeof(T).FullName); if (parser != null) { result = parser.GetAppIdFromGmuId(value.ToInt32(CULTURE)); } } catch (Exception ex) { method.Exception(ex); } return(result); } }
public S GetAppId <T, S>(int value) where T : IConvertible where S : IConvertible { using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "GetAppId")) { S result = default(S); try { IFFEnumParser parser = _parsers.GetValueFromKey1(typeof(T).FullName); if (parser != null) { result = TypeSystem.GetValueEnumGeneric2 <S>(parser.GetAppIdFromGmuId(value), default(S)); } } catch (Exception ex) { method.Exception(ex); } return(result); } }