Add function to built-in class using inheritance
- by Steven
I'm trying to add a IsImage property that I wrote myself to the HttpPostedFile class, so that if a user is uploading a file, I can do something like this:
FileUpload1.PostedFile.IsImage
How can I do that in C#?