Single | or & Vs Double || or &&
S.No | Single | or & | Double || or && |
1 | Bitwise Comparison. | Logical Comparison. |
-->
S.No | Single | or & | Double || or && |
1 | Bitwise Comparison. | Logical Comparison. |
S.No | Constants | Read-only |
1 | Constants are dealt with at compile-time. | Read-only variables are evaluated at runtime. |
2 | Constants supports value-type variables. | Read-only variables can hold reference type variables. |
3 | Constants should be used when it is very unlikely that the value will ever change. | Read-only variables should be used when run-time calculation is required. |
S.No | Particulars | Dynamic | Anonymous types |
1 | Run time | Dynamic types work at run time by late binding of object properties. | Anonymous types cause the compile time errors. |
2 | Keyword | Dynamic Keyword | Var Keyword. |
S.No | Particulars | IENUMERABLE | IQUERYABLE |
1 | Namespace | System.Collections | System.Linq |
2 | Suitable for | LINQ to Object and LINQ to XML. | LINQ to SQL. |
3 | custom query | doesn’t supports. | supports custom query using CreateQuery and Execute methods. |
4 | lazy loading | doesn’t supports. | supports. |
S.No | Particulars | ILIST | IENUMERABLE |
1 | Add/Remove Item | Support. | doesn't support. |
2 | Filtering | doesn't support. | Support. |