From 789ac98fa258692a25eaf5f380088479caa389ac Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 26 Apr 2016 23:25:42 +0100 Subject: Add runtime classes so that PathRelativeFileReader works on .NET --- dotnet/Mammoth/Couscous/java/nio/file/Path.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dotnet/Mammoth/Couscous/java/nio') diff --git a/dotnet/Mammoth/Couscous/java/nio/file/Path.cs b/dotnet/Mammoth/Couscous/java/nio/file/Path.cs index 032b4bb..030f757 100644 --- a/dotnet/Mammoth/Couscous/java/nio/file/Path.cs +++ b/dotnet/Mammoth/Couscous/java/nio/file/Path.cs @@ -1,4 +1,4 @@ -using System; +using Mammoth.Couscous.java.net; namespace Mammoth.Couscous.java.nio.file { internal class Path { @@ -7,6 +7,10 @@ namespace Mammoth.Couscous.java.nio.file { internal Path(string path) { _path = path; } + + internal URI toUri() { + return new URI(_path); + } } } -- cgit v1.2.3