Add function to built-in class using inheritance

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2010-03-21T02:16:30Z Indexed on 2010/03/21 2:21 UTC
Read the original article Hit count: 365

Filed under:
|

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#?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#