public String quote(String in) {if (in.matches("^~[A-Za-z0-9_-]+$")) { return in + "/"; }.*$")) { final int i = in.indexOf('/') + 1;if (i == in.length())return in;return in.substring(0, i) + super.quote(in.substring(i));}return super.quote(in);}

public override string Quote(string @in){if (@in.Matches("^~[A-Za-z0-9_-]+$")){return @in + "/";}.*$")){int i = @in.IndexOf('/') + 1;if (i == @in.Length){return @in;}return Sharpen.Runtime.Substring(@in, 0, i) + base.Quote(Sharpen.Runtime.Substring(@in, i));}return base.Quote(@in);}
