Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Throw exception.

  1. #1

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Resolved [RESOLVED] [2005] Throw exception.

    I want to throw error, if i used methods from this namespace System.IO

    For example,

    If i write File.Delete("TempPath") , i have to throw undefined Method..
    Visual Studio.net 2010
    If this post is useful, rate it


  2. #2
    New Member
    Join Date
    Sep 2006
    Posts
    11

    Re: [2005] Throw exception.

    just override the namespace. this wont throw any error. but we can hide the methods in the class.

    Code Code:
    1. Namespace System.IO
    2.  
    3.     Class File
    4.     End Class
    5.  
    6.     Class Path
    7.     End Class
    8.  
    9. End Namespace

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width