diff options
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs')
| -rw-r--r-- | dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs b/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs deleted file mode 100644 index c342e20..0000000 --- a/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs +++ /dev/null @@ -1,13 +0,0 @@ -using Mammoth.Couscous.java.util; - -namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util { - internal static class Casts { - internal static Optional<T> tryCast<T>(System.Type type, object value) { - if (value is T) { - return new Some<T>((T) value); - } else { - return new None<T>(); - } - } - } -} |
