public Equals ( object obj ) : bool | ||
obj | object | Another SmbFile object to compare for equality |
리턴 | bool |
public override bool Equals(object obj)
{
if (obj is SmbFile)
{
SmbFile f = (SmbFile)obj;
bool ret;
if (this == f)
{
return true;
}
if (PathNamesPossiblyEqual(Url.AbsolutePath, f.Url.AbsolutePath))
{
GetUncPath0();
f.GetUncPath0();
if (Runtime.EqualsIgnoreCase(_canon, f._canon))
{
try
{
ret = GetAddress().Equals(f.GetAddress());
}
catch (UnknownHostException)
{
ret = Runtime.EqualsIgnoreCase(GetServer(), f.GetServer());
}
return ret;
}
}
}
return false;
}