Groove Programming Tips & Tricks : Techniques to develop better tools in Groove
Updated: 1/21/2005; 10:19:44 AM.

 








Subscribe to "Groove Programming Tips & Tricks" in Radio UserLand.

Click to see the XML version of this web page.

 
 

Thursday, September 05, 2002

Use the existence of properties/attributes as a boolean value rather than the actual value.

Instead of writing code like this:

   PropertyList.SetProperty("Initialized", true);
   .
   .
   var Initialized = false;
   if (PropertyList.PropertyExists("Initialized"))
      Initialized = PropertyList.OpenValue("Initialized");
   .
   .

Write code like this:

   PropertyList.SetProperty("Initialized", true);
   .
   .
   var Initialized = PropertyList.PropertyExists("Initialized");
   .
   .


8:56:00 AM    comment []

© Copyright 2005 Paresh Suthar.



Click here to visit the Radio UserLand website.
 


September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Nov