Jan
28
comment casting to an abstract generic base class
thanks so much for the additional insight, i think in this case it was simple enough, but I'm sure this will come up again and again
Jan
28
accepted casting to an abstract generic base class
Jan
28
comment casting to an abstract generic base class
using the interface was perfect, and allowed me to cast it to that interface without any problems, thanks this looks like the trick!
Jan
28
comment casting to an abstract generic base class
updated, i'm trying to convert the Controller in an ActionFilter to my custom controller to check if stuff is null
Jan
28
revised casting to an abstract generic base class
gave a more concrete example because it was too confusing to keep it generic
Jan
28
comment casting to an abstract generic base class
Helper.GetStuff(Name) will ALWAYS return a string yes, but the GetStuff could fail, and return null. That's why I want to be able to cast the Controller to this base type and check if it is null.
Jan
28
comment casting to an abstract generic base class
okay I updated the question, when in Mvc, I get the Controller in and it's an Mvc Controller, but it's also a BaseThing, how do I cast it in a generic way to BaseThing? can this be done? or do I have to if/then on all the possible inherited Things?
Jan
28
revised casting to an abstract generic base class
gave a more concrete example because it was too confusing to keep it generic
Jan
28
comment casting to an abstract generic base class
actually I think I may have explained this incorrectly as I was trying to make it as generic as possible to avoid complicating things. this is in the context of MVC, let me update it to better explain what I'm trying to do
Jan
28
asked casting to an abstract generic base class
Dec
23
asked ASP.NET MVC: Ensuring Item Edit posts the same Item ID
Dec
20
awarded Nice Question
Dec
19
awarded Scholar
Dec
19
accepted How to say "I am not a spam bot" for a captcha
Dec
19
comment How to say "I am not a spam bot" for a captcha
marked as answer, I went with "no soy un robot" they seem to be happy with it, thanks
Dec
19
comment How to say "I am not a spam bot" for a captcha
lol thanks for the literal one, I was curious if there was a word for junk mail in spanish :)
Dec
19
awarded Student
Dec
18
awarded Editor
Dec
18
revised How to say "I am not a spam bot" for a captcha
added 153 characters in body
Dec
18
asked How to say "I am not a spam bot" for a captcha
1 2 3 4 5