FileShareConnectionInfo
using Relativity.Transfer.FileShare.Resources;
using System;
namespace Relativity.Transfer.FileShare
{
public class FileShareConnectionInfo : IEquatable<FileShareConnectionInfo>
{
public string { get; set; }
public bool => !string.IsNullOrEmpty(FileShareUncPath);
public FileShareConnectionInfo()
{
FileShareUncPath = string.Empty;
}
public FileShareConnectionInfo(string workspaceFileShare)
{
if (string.IsNullOrEmpty(workspaceFileShare))
throw new ArgumentNullException("workspaceFileShare", FileShareStrings.WorkspaceFileShareArgumentExceptionMessage);
FileShareUncPath = workspaceFileShare;
}
public static bool operator ==(FileShareConnectionInfo x, FileShareConnectionInfo y)
{
if ((object)x == y)
return true;
if ((object)x == null)
return false;
if ((object)y == null)
return false;
return string.Compare(x.FileShareUncPath, y.FileShareUncPath, StringComparison.OrdinalIgnoreCase) == 0;
}
public static bool operator !=(FileShareConnectionInfo x, FileShareConnectionInfo y)
{
return !(x == y);
}
public override int ()
{
if (string.IsNullOrEmpty(FileShareUncPath))
return 0;
return FileShareUncPath.GetHashCode();
}
public override bool (object obj)
{
return Equals(obj as FileShareConnectionInfo);
}
public bool (FileShareConnectionInfo other)
{
if ((object)other == null)
return false;
if ((object)this == other)
return true;
return string.Compare(FileShareUncPath, other.FileShareUncPath, StringComparison.OrdinalIgnoreCase) == 0;
}
}
}