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