code optimization
This commit is contained in:
@@ -1,31 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
namespace Pilz.Networking.CloudProviders.Nextcloud.Ocs;
|
||||
|
||||
namespace Pilz.Networking.CloudProviders.Nextcloud.Ocs
|
||||
public readonly struct OcsApiUrlPath
|
||||
{
|
||||
public readonly struct OcsApiUrlPath
|
||||
private readonly string path;
|
||||
|
||||
public OcsApiUrlPath()
|
||||
{
|
||||
private readonly string path;
|
||||
path = string.Empty;
|
||||
}
|
||||
|
||||
public OcsApiUrlPath()
|
||||
{
|
||||
path = string.Empty;
|
||||
}
|
||||
public OcsApiUrlPath(string path)
|
||||
{
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
public OcsApiUrlPath(string path)
|
||||
{
|
||||
this.path = path;
|
||||
}
|
||||
public static implicit operator string(OcsApiUrlPath o) => o.path;
|
||||
public static implicit operator OcsApiUrlPath(string o) => new(o);
|
||||
|
||||
public static implicit operator string(OcsApiUrlPath o) => o.path;
|
||||
public static implicit operator OcsApiUrlPath(string o) => new(o);
|
||||
|
||||
public override readonly string ToString()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
public override readonly string ToString()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user