Results 1 to 7 of 7

Thread: [Resolved] [1.0/1.1] Static initialization

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    [Resolved] [1.0/1.1] Static initialization

    Is there any static block for C#, can't seem to find a bit.

    Code:
    private static IList categories = new ArrayList();
    		static 
    		{
    			categories.Add("News and Features");
    			categories.Add("Kababayan Edition");
    			categories.Add("Hometown");
    			categories.Add("Owning a Home");
    		}
    ?
    Last edited by nebulom; Jul 18th, 2006 at 02:26 AM.

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