C to C# convertion
    typedef struct WebBlocking {
	    char *protocal;
	    char *URL;
	    int Port;
	    int policy;
    } AllPolicy ;

     AllPolicy WebBlock[] = {{"HTTPS","accounts.google.com",40, 1},{"HTTP","yahoo",80, 1}, 
     {"HTTP","www.facebook.com",80,1},{"HTTP","www.orkut.com",80,1},
     {"HTTPS","login.yahoo.com",443, 2} };

     # define NPolicy ( sizeof WebBlock /sizeof ( struct WebBlocking ) )
this structure  i want to convert into C#... and i want to pass the array of structers to a function as i do it in C like this....

     
     bool Decompose_IpAdd (  struct  WebBlocking POLICY[NPolicy], char * IpAddress  )

how can i do this in C#... i am just beginning to code in C#... can any one plz help me to convert this code...

thank you in advance
 


C to C# convertion
===

    typedef struct WebBlocking {
	    char *protocal;
	    char *URL;
	    int Port;
	    int policy;
    } AllPolicy ;

     AllPolicy WebBlock[] = {{"HTTPS","accounts.google.com",40, 1},{"HTTP","yahoo",80, 1}, 
     {"HTTP","www.facebook.com",80,1},{"HTTP","www.orkut.com",80,1},
     {"HTTPS","login.yahoo.com",443, 2} };

     # define NPolicy ( sizeof WebBlock /sizeof ( struct WebBlocking ) )
this structure  i want to convert into C#... and i want to pass the array of structers to a function as i do it in C like this....

     
     bool Decompose_IpAdd (  struct  WebBlocking POLICY[NPolicy], char * IpAddress  )

how can i do this in C#... i am just beginning to code in C#... can any one plz help me to convert this code...

thank you in advance
 

