Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,31 +135,6 @@ internal static string NavigationPropertyPath(this ODataPath path, string naviga
return navigationPropertyName == null ? value : $"{value}/{navigationPropertyName}";
}

/// <summary>
/// Attempts to add the specified key and value to the dictionary.
/// </summary>
/// <typeparam name="TKey">The type of the keys in the dictionary</typeparam>
/// <typeparam name="TValue">The type of the values in the dictionary</typeparam>
/// <param name="dictionary">A dictionary with keys of type TKey and values of type TValue.</param>
/// <param name="key">The key of the element to add.</param>
/// <param name="value">The value of the element to add.</param>
/// <returns>true when the key and value are successfully added to the dictionary;
/// false when the dictionary already contains the specified key,
/// in which case nothing gets added.</returns>
/// <exception cref="System.ArgumentNullException">dictionary is null.</exception>
internal static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dictionary,
TKey key, TValue value)
{
CheckArgumentNull(dictionary, nameof(dictionary));

if (!dictionary.ContainsKey(key))
{
dictionary.Add(key, value);
return true;
}
return false;
}

/// <summary>
/// Adds a mapping of custom extension values against custom attribute values for a given element to the provided
/// extensions object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Company>Microsoft</Company>
<Title>Microsoft Open API OData Reader</Title>
<RootNamespace>Microsoft.OpenApi.OData</RootNamespace>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8</TargetFrameworks>
<PackageId>Microsoft.OpenApi.OData</PackageId>
<SignAssembly>true</SignAssembly>
<Version>1.6.8</Version>
Expand Down