Re: Array Help!?!?!?...

From: Jezebel (dwarves_at_heaven.com.kr)
Date: 08/18/04


Date: Thu, 19 Aug 2004 08:07:10 +1000


> I'm adding each property explicitly because I don't know of a way to
iterate through a Control's properties; but I'm sure it can be done somehow,
possibly by casting it to some generic type. Or perhaps that's the Java in
me speaking.

Sadly, there usually isn't a direct way to do this. There's an API method;
and at some point there was obviously a push at Microsoft that objects
should always include a Properties collection precisely for this purpose.
Some objects have it but most don't.



Relevant Pages

  • Re: What is "evil" about casting?
    ... > in Java 1.5 and there I read more than once that casting was considered ... > Could someone give me a brief explenation as to what is wrong with ... the more robust Generics syntax. ...
    (comp.lang.java.programmer)
  • How to do this (jde-mode, ecb and semantic)
    ... I was playing with emacs and java, using jde-mode, ecb and semantic, ... Another question - is it possible somehow to customize the font-lock ...
    (comp.emacs)
  • Re: Box and UnBoxing
    ... > I assume it's the same as in Java and then it's not similar to casting. ... > Boxing creates a new instance of a different class, ... Shayne Wissler ...
    (comp.object)
  • free java (was Re: Sun JRE, JSDK and J2EE on debian=
    ... but as it somehow seems to fit: ... excessive usage of apache tomcat for several web/java related things ... , running atop Debian using the SUN JDK. ... java implementations and tool chains. ...
    (Debian-User)
  • Re: What is "evil" about casting?
    ... > see what's wrong with casting, in all the books I've read on Java casts ... The problem with casting is that it results in runtime exceptions. ... Generics makes Collections typesafe *and* convenient ...
    (comp.lang.java.programmer)