Skip to content

Commit 7d35490

Browse files
committed
Make 'Empty' static component be a property.
Signed-off-by: Ryan Lamb <[email protected]>
1 parent bda2ff8 commit 7d35490

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/OpenFeatureSDK/Model/EvaluationContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private EvaluationContext()
3333
/// <summary>
3434
/// An empty evaluation context.
3535
/// </summary>
36-
public static readonly EvaluationContext Empty = new EvaluationContext();
36+
public static EvaluationContext Empty { get; } = new EvaluationContext();
3737

3838
/// <summary>
3939
/// Gets the Value at the specified key

src/OpenFeatureSDK/Model/Structure.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ internal Structure(ImmutableDictionary<string, Value> attributes)
2626
private Structure()
2727
{
2828
this._attributes = ImmutableDictionary<string, Value>.Empty;
29-
3029
}
3130

3231
/// <summary>
3332
/// An empty structure.
3433
/// </summary>
35-
public static readonly Structure Empty = new Structure();
34+
public static Structure Empty { get; } = new Structure();
3635

3736
/// <summary>
3837
/// Creates a new structure with the supplied attributes

0 commit comments

Comments
 (0)