Skip to content

GetDictionaryTypes Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

void GetDictionaryTypes(IDictionary dict, out Type key, out Type value) ​

csharp
void GetDictionaryTypes(IDictionary dict, out Type key, out Type value)

Retrieves the key and value type arguments of a generic IDictionary instance, if available.

Parameters ​

NameDescription
dictThe dictionary to inspect.
keyOutputs the key type, or null if not found.
valueOutputs the value type, or null if not found.