-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Appegy.Storage | ||
{ | ||
public class UnexpectedEnumException : Exception | ||
{ | ||
public UnexpectedEnumException(Type actualType, Enum value) | ||
: base($"Unexpected enum type {actualType.Name}.{value}") | ||
{ | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Appegy.Storage | ||
{ | ||
/// <summary> | ||
/// Specifies the behavior when a requested key is not found in the storage. | ||
/// </summary> | ||
public enum MissingKeyBehavior | ||
{ | ||
/// <summary> | ||
/// Initializes the key with the provided default value and stores it. | ||
/// </summary> | ||
InitializeWithDefaultValue, | ||
|
||
/// <summary> | ||
/// Returns the provided default value without storing it. | ||
/// </summary> | ||
ReturnDefaultValueOnly | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.