public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType()) return false;
DicomFragment frame = (DicomFragment) obj;
byte[] source = this.GetByteArray();
byte[] dest = frame.GetByteArray();
for (int index = 0; index < source.Length; index++)
if (!source[index].Equals(dest[index]))
return false;
return true;
}