linq - wpf overriding getHashCode and Eqaul in ContentControl -


hi have class derives contentcontrol , i'm not able override gethashcode , equal method. error

error 5 cannot override inherited member 'system.windows.dependencyobject.gethashcode()' because sealed there way override method ? need use union method linq need compare object different condition normal. there way ?

yes - implement iequalitycomparer<t> separately, , pass relevant overload of union.

basically you'll telling how compare 2 items equality, , how take hash code of 1 item. union use custom comparison when building hash sets etc. don't need override existing methods.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -