static private bool AceOpaquesMatch( QualifiedAce ace, QualifiedAce newAce ) { byte[] aceOpaque = ace.GetOpaque(); byte[] newAceOpaque = newAce.GetOpaque(); if ( aceOpaque == null || newAceOpaque == null ) { return aceOpaque == newAceOpaque; } if ( aceOpaque.Length != newAceOpaque.Length ) { return false; } for ( int i = 0; i < aceOpaque.Length; ++i ) { if ( aceOpaque[i] != newAceOpaque[i] ) { return false; } } return true; }