- Refactored code
- Implemented basic JSON Path interpreter - Clean up
This commit is contained in:
10
DevDisciples.Parsing/Extensions/CastingExtensions.cs
Normal file
10
DevDisciples.Parsing/Extensions/CastingExtensions.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace DevDisciples.Parsing.Extensions;
|
||||
|
||||
public static class CastingExtensions
|
||||
{
|
||||
public static T As<T>(this object @object)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(@object);
|
||||
return (T)@object;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user