public bool ContainsTheSame(Db4objects.Db4o.Internal.ByteArrayBuffer other) { if (other != null) { return(Arrays4.Equals(_buffer, other._buffer)); } return(false); }
public bool ContainsTheSame(ByteArrayBuffer other) { if (other != null) { return(Arrays4.Equals(_buffer, other._buffer)); } return(false); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (!(obj is Db4objects.Drs.Foundation.Signature)) { return(false); } Db4objects.Drs.Foundation.Signature other = (Db4objects.Drs.Foundation.Signature) obj; return(Arrays4.Equals(bytes, other.bytes)); }
/// <summary>comparison by signature.</summary> /// <remarks>comparison by signature.</remarks> public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj == null || this.GetType() != obj.GetType()) { return(false); } Db4objects.Db4o.Ext.Db4oDatabase other = (Db4objects.Db4o.Ext.Db4oDatabase)obj; if (null == other.i_signature || null == this.i_signature) { return(false); } return(Arrays4.Equals(other.i_signature, this.i_signature)); }
protected HardObjectReference GetHardObjectReferenceById(Transaction transaction, int parentId, byte[] signature) { HardObjectReference hardRef = transaction.Container().GetHardObjectReferenceById( transaction, parentId); if (hardRef._reference == null) { return(null); } VirtualAttributes vad = hardRef._reference.VirtualAttributes(transaction, false); if (!Arrays4.Equals(signature, vad.i_database.i_signature)) { return(null); } return(hardRef); }