Skip to content

Commit 5034ea5

Browse files
committed
Update ImmutableMetadata.cs
Updated document comments to reflect the conversions between int and double. Signed-off-by: lager95 <[email protected]>
1 parent 51f1212 commit 5034ea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenFeature/Model/ImmutableMetadata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ImmutableMetadata(Dictionary<string, object> metadata)
4242
/// Gets the integer value associated with the specified key.
4343
/// </summary>
4444
/// <param name="key">The key of the value to retrieve.</param>
45-
/// <returns>The integer value associated with the key, or null if the key is not found.</returns>
45+
/// <returns>The value associated with the key as an integer, if it is of type double or int; otherwise, null.</returns>
4646
public int? GetInt(string key)
4747
{
4848
var hasValue = this._metadata.TryGetValue(key, out var value);
@@ -58,7 +58,7 @@ public ImmutableMetadata(Dictionary<string, object> metadata)
5858
/// Gets the double value associated with the specified key.
5959
/// </summary>
6060
/// <param name="key">The key of the value to retrieve.</param>
61-
/// <returns>The double value associated with the key, or null if the key is not found.</returns>
61+
/// <returns>The value associated with the key as a double, if it is of type double or int; otherwise, null.</returns>
6262
public double? GetDouble(string key)
6363
{
6464
var hasValue = this._metadata.TryGetValue(key, out var value);

0 commit comments

Comments
 (0)