MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / MakeDictionaryType

Method MakeDictionaryType

Source/Editor/Scripting/ScriptType.cs:1174–1179  ·  view source on GitHub ↗

Returns a type object that represents a dictionary of the key and value types. A type object representing a dictionary of the key and value types.

(ScriptType keyType, ScriptType valueType)

Source from the content-addressed store, hash-verified

1172 /// </summary>
1173 /// <returns>A type object representing a dictionary of the key and value types.</returns>
1174 public static ScriptType MakeDictionaryType(ScriptType keyType, ScriptType valueType)
1175 {
1176 if (keyType == Null || valueType == Null)
1177 throw new ArgumentNullException();
1178 return new ScriptType(typeof(Dictionary<,>).MakeGenericType(TypeUtils.GetType(keyType), TypeUtils.GetType(valueType)));
1179 }
1180
1181 /// <summary>
1182 /// Searches for the specified members of the specified member type, using the specified binding constraints.

Callers 2

UpdateUIMethod · 0.80
OnParamContextMenuMethod · 0.80

Calls 2

MakeGenericTypeMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected