Will you ever support IComparable and IComparable<T>?


hello,

i wonder whether add support because it's not possible following

[contractabbreviator]  public static void lessthan<t>(t upperbound) t : icomparable<t>  {  	contract.ensures(contract.result<t>().compareto(upperbound)  < 0);  }

although working fine.

[contractabbreviator]  public static void lessthan(int upperbound)  {  	contract.ensures(contract.result<int>() < upperbound);  }
can save lot of work , in opinion lot nicer.


regards,

eyal shilony

i'm wondering, technical limitation prevents supporting this? or design decision? i've searched high , low , found nothing please elaborate.


regards,

eyal shilony



DevLabs  >  Code Contracts



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle