The Active Network
ActiveMac Anonymous | Create a User | Reviews | News | Forums | Advertise  
 

  *  

  Properites vs. Methods...
Time: 19:17 EST/00:17 GMT | News Source: GotDotNet | Posted By: Jonathan Tigner

It is an age old debate… we have some fairly good guidelines, but they certainly leave room for improvement. Today at a WinFX API review (for some cool stuff that didn’t make it out in the PDC drop) we had the debate again… Today the APIs look like:

public DateTime GetDisconnectTime();
public TimeSpan GetIdleTime();
public DateTime GetLogonTime();
public SessionStates GetSessionStates();
public WindowsIdentity GetUserInformation();

My knee jerk is to make these properties…

public DateTime DisconnectTime {get; }
public TimeSpan IdleTime {get; }
public DateTime LogonTime {get; }
public SessionStates SessionStates {get; }
public WindowsIdentity UserInformation {get; }

the problem… well, the calls *could* be cross machine…. My worry is if they are cross machine making these guys properties will lead people to write inefficient code (and therefore bring down the wrath of Rico)…

So, my question for you… Based on this very limited data I have given you, what should we do here? Go for properties and hope for the best, or error on the safe side and use methods, something else?

Write Comment
Return to News

  Displaying 551 through 555 of 555
Prev | First
  The time now is 11:38:04 PM ET.
Any comment problems? E-mail us
#551 By 4240821 (82.115.4.230) at 6/26/2025 6:30:29 AM
https://lustful.su/v/t0j3j9edmokt.php
https://sexonly.su/v/9lac55gxa4pa.php
https://sexonly.top/v/em0433o4kotz.php
https://nsfw.su/v/hb45k5lxznao.php
https://sluts.su/v/jb2ues353f4d.php
https://sexonly.su/v/rvblpaw96tpm.php
https://sexonly.top/v/tdr846ft1d53.php
https://nsfw.su/v/2m6rvl3yd0ni.php
https://sluts.su/v/6cu9ooxgj25o.php
https://lustful.su/v/p4r0w5jwo9np.php

#552 By 4240821 (82.115.4.230) at 6/27/2025 8:33:26 AM
https://lustful.su/v/25z4zgc7qwrs.php
https://nsfw.su/v/a5zn2t47qh7n.php
https://lustful.su/v/j45w11p52pbr.php
https://nsfw.su/v/40668qianyaa.php
https://sexonly.su/v/8g7suzjzv7tr.php
https://sexonly.su/v/imyp39qywuun.php
https://sexonly.top/v/56qj0y2ksb4d.php
https://lustful.su/v/ux2oyq9t9eu4.php
https://sexonly.top/v/d7y2mh84ef03.php
https://sexonly.su/v/1u798nr1ovps.php

#553 By 4240821 (82.115.4.230) at 6/28/2025 2:48:12 PM
https://sexonly.top/v/tsvxsyfppme8.php
https://lustful.su/v/xjv1wjt6yfk0.php
https://lustful.su/v/gllrggs6tyzw.php
https://sexonly.top/v/t7tksynvgojf.php
https://nsfw.su/v/qb6u4c00w0x4.php
https://lustful.su/v/p92hm1vq3sbk.php
https://nsfw.su/v/kw6osukk98xs.php
https://lustful.su/v/8pm36xg5zgik.php
https://sexonly.su/v/emlntywex4h3.php
https://nsfw.su/v/dgyvy5hr9bug.php

#554 By 4240821 (82.115.4.230) at 6/29/2025 6:29:58 PM
https://namethatpornstar.com/thread/4251928
https://namethatpornstar.com/thread/4252013
https://namethatpornstar.com/thread/4251753
https://namethatpornstar.com/thread/4252209
https://namethatpornstar.com/thread/4251371
https://namethatpornstar.com/thread/4251921
https://namethatpornstar.com/thread/4251499
https://namethatpornstar.com/thread/4251500
https://namethatpornstar.com/thread/4253025
https://namethatpornstar.com/thread/4253030

#555 By 4240821 (82.115.4.230) at 6/30/2025 6:34:18 PM
https://lustful.su/g/p26/p26kavsuwcwguxkslc.php
https://sexonly.su/g/p84/p84xrscuoosdrpwauo.php
https://nsfw.su/g/p60/p60dwcucnozywggknu.php
https://sexonly.su/g/p18/p18byrgdslycgwaqik.php
https://sexonly.su/g/p93/p93sfrjmmavfpbihqq.php
https://sexonly.top/g/p5/p5poincmgzooovpsm.php
https://sexonly.su/g/p53/p53sopyihgmnwpuiuy.php
https://sexonly.top/g/p8/p8rqajardvyciqsiq.php
https://sexonly.top/g/p45/p45rzxpdbyinbxgelq.php
https://sexonly.su/g/p14/p14ropogmkgvbfozek.php

Write Comment
Return to News
  Displaying 551 through 555 of 555
Prev | First
  The time now is 11:38:05 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *