icomparable
Nullable generic type used with IComparable. Is it possible?
I\'m trying to create a simple Clamp (so that I can bound the values of anything com开发者_高级运维parable ... mostly for number types such as int, double, etc.)[详细]
2023-01-08 16:26 分类:问答Problems with implementing generic IEnumerator and IComparable
I\'m working on an AVL Tree. The tree itself seems to be working but I need a iterator to walk through the values of the tree. Therefore I tried to implement开发者_StackOverflow中文版 the IEnumerator[详细]
2022-12-30 22:43 分类:问答Sort a 2D Points List (first by X and then Y)
I am trying to sort a List of 2D Points first by x co-ordinate and then by y co-ordinate. I implemented the IComparer interface as follows:[详细]
2022-12-29 20:38 分类:问答IComparable not included when serializing in WCF
I have a list i\'m filling at server side. It\'s a list of \"User\", which implements ICompar开发者_运维技巧able.[详细]
2022-12-29 18:32 分类:问答Why is my List.Sort method in C# reversing the order of my list?
I have a list of items in a generic list: A1 (sort index 1) A2 (sort index 2) B1 (sort index 3) B2 (sort index 3)[详细]
2022-12-27 06:29 分类:问答Implementing IComparable<NotSelf>
This might be a trivial question, but I didn\'t find any information about this: is it \"harmful\" or considered bad practice to make a type T implement IComparable<S> (T and S being two differe[详细]
2022-12-25 13:46 分类:问答XAttribute implementing IComparable during tests, but not when live
I have some code below that is throwing an exception in integration environments but not in my unit tests.Basically I\'m sorting some XML elements (linq-2-sql XElement) by an attribute value.All the n[详细]
2022-12-24 12:57 分类:问答Comparing Nested Inner Classes Within Generic Class
I am crafting a nested inner class within a generic class and I\'m unsure if I\'m writing this properly. Is there anything glaringly wrong here?[详细]
2022-12-20 07:31 分类:问答Compare/count values in a System.Collections.ArrayList
I\'m scrubbing 5 files for a specific value.I dont anticipate any different values, BUT since this is for my own educational purposes, I would like the application to count, compare and print the most[详细]
2022-12-17 03:48 分类:问答C# Binary Search on 2 indexes
I have an object with attributes ; startIndex, endIndex I am able to do binary search based on startIndex by implementing the following :[详细]
2022-12-15 02:57 分类:问答
加载中,请稍侯......