I was experimenting a bit and then this happend:
And I was like "lolwut?"
So how is this possible? (I'm not an expert in visualbasic, learning C++ now)
[visual basic] Lolwut?
Moderator: MaxCoderz Staff
- driesguldolf
- Extreme Poster
- Posts: 395
- Joined: Thu 17 May, 2007 4:49 pm
- Location: $4080
- Contact:
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Quite simply; the ImageFormat class has static properties that return new instances of the class set to a particular ImageFormat type.
If you have an instance of ImageFormat, you can then (via Visual Studio's debugger) access the ImageFormat's static members to retrieve another instance of the ImageFormat, then use that new instance to retrieve another one, and so on and so forth...
Edit: C#'s debugger makes it more obvious that you're accessing static members - screenshot.
If you have an instance of ImageFormat, you can then (via Visual Studio's debugger) access the ImageFormat's static members to retrieve another instance of the ImageFormat, then use that new instance to retrieve another one, and so on and so forth...
Edit: C#'s debugger makes it more obvious that you're accessing static members - screenshot.
- driesguldolf
- Extreme Poster
- Posts: 395
- Joined: Thu 17 May, 2007 4:49 pm
- Location: $4080
- Contact: