M
marian.edu
Guest
If you extend the webrequest then define the variable as extendedwebrequest if you have methods there that aren’t found in webrequest, otherwise let it be a plain webrequest and when you instantiate it with new extendedwebrequest you can pass that down the stream to a webclient or something that will just treat it as a plain webrequest. If you just get a webrequest instance then you can try to see if it’s an instanceof your extendedwebrequest, if it is you can cast it otherwise you just can’t... but again, do you really care? Any new methods there that you want to use? Sent from outer space
Continue reading...
Continue reading...