Declares a custom type comparer.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.528.0)
Syntax
| C# |
|---|
public class ComparerAttribute : AbstractComparerAttribute |
| Visual Basic (Declaration) |
|---|
Public Class ComparerAttribute _ Inherits AbstractComparerAttribute |
Remarks
That attribute must be used on a static method which takes 2 parameters of the same type, and return a Int32 value.
Examples
public class MyComparers { [Comparer] public static int Compare(Foo x, Foo y) { return /* Insert comparison logic here... */ } }
Inheritance Hierarchy
System..::.Object
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
MbUnit.Framework..::.ExtensionPointPatternAttribute
MbUnit.Framework..::.AbstractComparerAttribute
MbUnit.Framework..::.ComparerAttribute
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
MbUnit.Framework..::.ExtensionPointPatternAttribute
MbUnit.Framework..::.AbstractComparerAttribute
MbUnit.Framework..::.ComparerAttribute
