private static void GetSystemEventTypeInfo(int eventCode, int index0, int index1, out SystemEventTypeInfo info, out SystemEventType systemEventType) { systemEventType = s_eventCodeToSystemEventTypeMappings[index0, index1]; if (systemEventType == SystemEventType.Unknown) { systemEventType = SystemEventTypeFromEventCode(eventCode); s_eventCodeToSystemEventTypeMappings[index0, index1] = systemEventType; } info = s_systemEventTypeInfos[(int)systemEventType]; if (info == null) { info = new SystemEventTypeInfo(CreateDummySystemEvent(systemEventType)); s_systemEventTypeInfos[(int)systemEventType] = info; } }
private static void GetSystemEventTypeInfo(int eventCode, int index0, int index1, out SystemEventTypeInfo info, out SystemEventType systemEventType) { systemEventType = s_eventCodeToSystemEventTypeMappings[index0, index1]; if (systemEventType == SystemEventType.Unknown) { systemEventType = SystemEventTypeFromEventCode(eventCode); s_eventCodeToSystemEventTypeMappings[index0, index1] = systemEventType; } info = s_systemEventTypeInfos[(int) systemEventType]; if (info == null) { info = new SystemEventTypeInfo(CreateDummySystemEvent(systemEventType)); s_systemEventTypeInfos[(int) systemEventType] = info; } }
static void GetSystemEventTypeInfo(int eventCode, int index0, int index1, out SystemEventTypeInfo info, out SystemEventType systemEventType) { // Figure out what SystemEventType this eventCode maps to. // For each eventCode, we store the result in a cache. systemEventType = s_eventCodeToSystemEventTypeMappings[index0, index1]; if (systemEventType == SystemEventType.Unknown) { systemEventType = SystemEventTypeFromEventCode(eventCode); s_eventCodeToSystemEventTypeMappings[index0, index1] = systemEventType; } // Based on the systemEventType, we read the SystemEventTypeInfo. For each // event type, we also cache the info info = s_systemEventTypeInfos[(int)systemEventType]; if (info != null) { return; } info = new SystemEventTypeInfo(CreateDummySystemEvent(systemEventType)); s_systemEventTypeInfos[(int)systemEventType] = info; }