public override bool Equals(Blob blob)
{
FileBlob fb = blob as FileBlob;
if (fb != null) return fb.filename.Equals(this.filename);
if (fb == this) return true;
StreamBlob sb = blob as StreamBlob;
if (sb == null) return false;
FileStream fs = sb.UnderlyingStream as FileStream;
if (fs == null) return false;
try
{
return filename.Equals(fs.Name);
}
catch
{
return false;
}
}
}