2 instantiations of ParameterLookupKey
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
164
dict[
new
(parameter.Name, parameter.ParameterType)] = parameter;
168
return prop => dict.TryGetValue(
new
(prop.Name, prop.PropertyType), out ParameterInfo? parameter) ? parameter : null;
4 references to ParameterLookupKey
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (4)
157
Dictionary<
ParameterLookupKey
, ParameterInfo> dict = new(parameters.Length);
402
private readonly struct ParameterLookupKey : IEquatable<
ParameterLookupKey
>
414
public bool Equals(
ParameterLookupKey
other) => Type == other.Type && string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);
415
public override bool Equals(object? obj) => obj is
ParameterLookupKey
key && Equals(key);