Dealing with type-casting limitations

Well this is the first post involving the .NET 4.0 framework, woo :D. Something I’ve had a problem with from within the abstract service lay which we use at TheFARM. It’s a limitation of the .NET framework and how you can do type casting wi…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Well this is the first post involving the .NET 4.0 framework, woo :D. Something I’ve had a problem with from within the abstract service lay which we use at TheFARM. It’s a limitation of the .NET framework and how you can do type casting within the .NET framework. The way we use our service layer is to never return classes, we only return interfaces, so you can’t write a method which looks like this:


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-12-06T16:18:02+00:00) » Dealing with type-casting limitations. Retrieved from https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/.
MLA
" » Dealing with type-casting limitations." Posts on LINQ to Fail | Sciencx - Sunday April 25, 2010, https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/
HARVARD
Posts on LINQ to Fail | Sciencx Sunday April 25, 2010 » Dealing with type-casting limitations., viewed 2022-12-06T16:18:02+00:00,<https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Dealing with type-casting limitations. [Internet]. [Accessed 2022-12-06T16:18:02+00:00]. Available from: https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/
CHICAGO
" » Dealing with type-casting limitations." Posts on LINQ to Fail | Sciencx - Accessed 2022-12-06T16:18:02+00:00. https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/
IEEE
" » Dealing with type-casting limitations." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/. [Accessed: 2022-12-06T16:18:02+00:00]
rf:citation
» Dealing with type-casting limitations | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2010/04/25/dealing-with-type-casting-limitations/ | 2022-12-06T16:18:02+00:00
https://github.com/addpipe/simple-recorderjs-demo