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

How to Share webservice object to all user

How to fix error Msg 1801, Level 16, State 3, Line 1