-
It has been discovered that when dealing with hashtables, it is best not to use the Count property on the hashtable as it is unreliable and can sometimes cause the following error:
> Cannot compare…
-
There appears to be an issue with the call to the JToken.Value<T> method, when working with JTokenType.Date tokens. I am in the UK and would expect to see dates always formatted in UK style i.e.…
-
**Describe the bug**
When using the automatic sort in the `DataGrid` on a column containing a `ProtoBuf.WellKnownType.TimeStamp`, an exception occurs stating that at least one item must implement `…
-
Giving the following code:
```
private struct C : IComparable
{
public C(float v) => this.V = v;
public float V { get; }
public int CompareTo(float other) => this.V.CompareTo(other…
-
[In this document](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/where-generic-type-constraint)
This class is defined:
public class AGenericClass where T : IComp…
-
I discovered this anomoly whilst building some parameter set analysis tools, so the code example below is in relation to accessing a command's parameter set information.
The code is in the cont…
-
```fsharp
open System
ValueTuple.Create(0,0) :> IComparable
```
gives
```
error FS0193: Type constraint mismatch. The type
'struct (int * int)'
is not compatible with type
'ICo…
-
Starting in .NET Core 2.1, calling `EqualityComparer.Default.Equals` is specially optimized by the JIT by devirtualizing and inlining the equality check.
However, [as seen in SharpLab](https://shar…
-
This should be updated by:
- [x] Use C# Interactive for samples
- [x] Include `IComparable`
- [x] More specific headings than "Example"
- [x] Add redirection
- [x] Add links from C# Hello World Q…
-
Great article. Thank you.
I would like to suggest that you add some explanation on the use of "in" and "out" as modifiers of generic type parameters. For example, the generic form of IComparable is gi…