Menu
  • HOME
  • TAGS

System.Version doesn't implement System.IComparable in F#

c#,.net,f#,icomparable,bcl

The error message is telling you that (seq->'a) does not implement IComparable which is true since (seq->'a) is a function, not a sequence. If you look at the signature of Seq.max it takes only the sequence as parameter. Remove the lambda (fun version -> version) and it should be alright....

Why does IPAddress.MapToIPv4() throw ArgumentOutOfRangeException?

.net,ipv6,ipv4,bcl,bug-reporting

Ok, I've actually verified this, so let me post this as an answer. The IPAddress class has an error when mapping the address back to IPv4. According to the .NET reference code, it does this: long address = (((m_Numbers[6] & 0x0000FF00) >> 8) | ((m_Numbers[6] & 0x000000FF) << 8)) |...

Tuple.Create in F#

.net,f#,tuples,bcl

The tuple type of F# (a syntactic tuple) is compiled as System.Tuple<..>. So they are the same type at .NET level but for F# type system they are different types: the type of a syntactic tuple will not match the type of a System.Tuple<..> but their runtime type will be...

What is System.Reflection.Module?

.net,reflection,bcl

An assembly can consist of multiple modules and even be split up into multiple files. There are two primary use cases for using modules: Combining modules written in different languages / compiled by different compilers in one assembly Optimize downloading speed of an application by having a lightweight main module...

Cannot use System.IO.Compression and SQLite both referenced in a WP8.1 project

c#,windows-phone-8,windows-phone,bcl,sqlite.net

There is a problem with the Microsoft.Bcl.Compression.targets script in that it uses the same target name as sqlite-net-wp8, InjectReference. I changed InjectReference to BCLCompressionInjectReference and reloaded the project and now it works fine....