90 lines
1.9 KiB
C#
90 lines
1.9 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: Rei.Fs.ResourceId
|
|||
|
// Assembly: Rei.Fs, Version=1.13.2.8796, Culture=neutral, PublicKeyToken=null
|
|||
|
// MVID: D8B08A8B-697C-4439-9CFF-1BE4EE46F7B0
|
|||
|
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Fs.dll
|
|||
|
|
|||
|
using System;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Diagnostics;
|
|||
|
|
|||
|
namespace Rei.Fs
|
|||
|
{
|
|||
|
[DebuggerDisplay("{DebuggerString}")]
|
|||
|
[Serializable]
|
|||
|
public class ResourceId : ReturnedInfo
|
|||
|
{
|
|||
|
private Uri pUri;
|
|||
|
private string pTag;
|
|||
|
private bool pIsCaseSensitive;
|
|||
|
|
|||
|
public ResourceId(Uri target, FsBase fs)
|
|||
|
: this(target, "", fs)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public ResourceId(Uri target, string tag, FsBase fs)
|
|||
|
{
|
|||
|
this.pUri = target;
|
|||
|
this.pTag = tag;
|
|||
|
this.pIsCaseSensitive = fs.IsCaseSensitiveFs;
|
|||
|
}
|
|||
|
|
|||
|
public Uri Uri
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return this.pUri;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public string Tag
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return this.pTag;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public bool IsCollection
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return UriUtil.EndWithSlash(this.pUri);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
return this.pUri.ToString();
|
|||
|
}
|
|||
|
|
|||
|
public override bool Equals(object obj)
|
|||
|
{
|
|||
|
ResourceId resourceId = obj as ResourceId;
|
|||
|
if ((object) resourceId == null)
|
|||
|
return false;
|
|||
|
return UriUtil.UriEquals(this.Uri, resourceId.Uri, this.pIsCaseSensitive);
|
|||
|
}
|
|||
|
|
|||
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|||
|
public string DebuggerString
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return this.ToString();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public static bool operator ==(ResourceId id1, ResourceId id2)
|
|||
|
{
|
|||
|
return UriUtil.UriEquals(id1.Uri, id2.Uri, id1.pIsCaseSensitive);
|
|||
|
}
|
|||
|
|
|||
|
public static bool operator !=(ResourceId id1, ResourceId id2)
|
|||
|
{
|
|||
|
return !UriUtil.UriEquals(id1.Uri, id2.Uri, id1.pIsCaseSensitive);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|