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 676 through 688 of 688
Prev | First
  The time now is 6:34:21 PM ET.
Any comment problems? E-mail us
#676 By 4240821 (82.115.4.230) at 11/8/2025 5:29:40 PM
https://sexonly.top/activ5hcadd1d3d
https://smutty.su/activgeafbche2g
https://sexonly.su/activg1hffg1gbh
https://sluts.su/activche322eh5h
https://sexonly.su/activ131ce542h2
https://smutty.su/active3d2gda212
https://nsfw.su/activ1bcca45d1e
https://nsfw.su/activ35eb415eag
https://sexonly.top/activ144eded1eg
https://sluts.su/activ2h4d5g1fcf

#677 By 4240821 (82.115.4.230) at 11/9/2025 11:02:29 AM
https://sluts.su/activchc322egha
https://sexonly.su/activffc5h54f34
https://smutty.su/activ3caehb44dg
https://smutty.su/activd455g1ffgf
https://smutty.su/activbdggd435fb
https://sexonly.su/activggbagag4c1
https://lustful.su/activ4fcb3hfcf5
https://nsfw.su/activhg5e2h1hb2
https://sexonly.top/activd5fc5234fg
https://nsfw.su/activbhc4h2ae22

#678 By 4240821 (82.115.4.230) at 11/9/2025 9:14:19 PM
https://smutty.su/activ3h1b2143h5
https://lustful.su/activccd4dh3fhe
https://smutty.su/active1bf45d3fe
https://lustful.su/activfhghc1hhde
https://sluts.su/activb2aece413d
https://sluts.su/activcdef2bgdd2
https://sexonly.su/activfaech11211
https://nsfw.su/activ5ccdch13ch
https://sluts.su/activb1accbcb3b
https://sluts.su/activbeeg5be42h

#679 By 4240821 (45.192.45.37) at 11/10/2025 4:09:56 PM
https://www.pillowfort.social/posts/6524489
https://www.pillowfort.social/posts/6524446
https://www.pillowfort.social/posts/6524297
https://www.pillowfort.social/posts/6524246
https://www.pillowfort.social/posts/6524141
https://www.pillowfort.social/posts/6523962
https://www.pillowfort.social/posts/6523844
https://www.pillowfort.social/posts/6523750
https://www.pillowfort.social/posts/6523603
https://www.pillowfort.social/posts/6523328

#680 By 4240821 (82.115.4.230) at 11/10/2025 8:04:38 PM
https://sexonly.su/activ1f35a245a1
https://lustful.su/activgba123d335
https://sexonly.top/activea55aae1ef
https://smutty.su/activcha555efbh
https://smutty.su/activhge5fdc1f2
https://sexonly.su/activgc4141f455
https://nsfw.su/actived11g4bb22
https://sluts.su/activg32de32ag3
https://smutty.su/activ32ch452eae
https://sexonly.top/activggfbde41gh

#681 By 4240821 (82.115.4.230) at 11/11/2025 1:07:42 PM
https://lustful.su/activ3ge3h5hchd
https://lustful.su/activf42e1bf11c
https://sluts.su/activ5d42hc3g41
https://nsfw.su/activecgdge2b13
https://nsfw.su/activf1bfgabh31
https://smutty.su/activbhdcegh1de
https://lustful.su/activbad54ceg3d
https://nsfw.su/activfe532ecgcg
https://lustful.su/activad2dg34e4a
https://sluts.su/activ3a4d1febgd

#682 By 4240821 (45.192.45.37) at 11/11/2025 10:24:28 PM
https://www.pillowfort.social/posts/6650145
https://www.pillowfort.social/posts/6650040
https://www.pillowfort.social/posts/6649932
https://www.pillowfort.social/posts/6649775
https://www.pillowfort.social/posts/6649658
https://www.pillowfort.social/posts/6649521
https://www.pillowfort.social/posts/6649484
https://www.pillowfort.social/posts/6649319
https://www.pillowfort.social/posts/6649206
https://www.pillowfort.social/posts/6649084

#683 By 4240821 (45.192.45.37) at 11/12/2025 7:24:35 AM
https://www.pillowfort.social/posts/6572916
https://www.pillowfort.social/posts/6572720
https://www.pillowfort.social/posts/6572565
https://www.pillowfort.social/posts/6572412
https://www.pillowfort.social/posts/6572315
https://www.pillowfort.social/posts/6572153
https://www.pillowfort.social/posts/6571973
https://www.pillowfort.social/posts/6571826
https://www.pillowfort.social/posts/6571628
https://www.pillowfort.social/posts/6571404

#684 By 4240821 (45.192.45.37) at 11/12/2025 8:44:53 PM
https://www.pillowfort.social/posts/6586094
https://www.pillowfort.social/posts/6585986
https://www.pillowfort.social/posts/6585939
https://www.pillowfort.social/posts/6585852
https://www.pillowfort.social/posts/6585702
https://www.pillowfort.social/posts/6585613
https://www.pillowfort.social/posts/6585548
https://www.pillowfort.social/posts/6585421
https://www.pillowfort.social/posts/6585342
https://www.pillowfort.social/posts/6585239

#685 By 4240821 (82.115.4.230) at 11/12/2025 9:56:19 PM
https://smutty.su/activ1begggfdfe
https://sexonly.top/activggd1d45ecd
https://lustful.su/activce21decda2
https://sluts.su/activdbffgfc133
https://sluts.su/activb1dgbbb3c1
https://lustful.su/activbefd5de2dc
https://sexonly.top/activdcd1bfa4b3
https://sexonly.su/activ2dhecgadhb
https://smutty.su/activcfbeh42cgc
https://sexonly.top/activbffhg4fhe1

#686 By 4240821 (45.192.45.37) at 11/13/2025 12:12:48 AM
https://www.pillowfort.social/posts/6645232
https://www.pillowfort.social/posts/6645133
https://www.pillowfort.social/posts/6644919
https://www.pillowfort.social/posts/6644764
https://www.pillowfort.social/posts/6644569
https://www.pillowfort.social/posts/6644428
https://www.pillowfort.social/posts/6644300
https://www.pillowfort.social/posts/6644115
https://www.pillowfort.social/posts/6643992
https://www.pillowfort.social/posts/6643849

#687 By 4240821 (82.115.4.230) at 11/13/2025 1:18:05 AM
https://nsfw.su/activd1haah3542
https://lustful.su/activ1g35c5234g
https://smutty.su/activ2gfa33bhd4
https://smutty.su/activda5hb3hee5
https://lustful.su/activ53ddae21e4
https://nsfw.su/activd4d4b2dgdc
https://sluts.su/activgc15fhhd3e
https://sexonly.top/activefg5h4dc5g
https://smutty.su/activbgdf1e3aff
https://sexonly.top/activhabbf3bd3g

#688 By 4240821 (45.192.45.37) at 11/13/2025 11:23:55 PM
https://telegra.ph/Austin-Cindric-NASCARs-Hidden-Mystery-05-27
https://telegra.ph/49ers-Drama-QB-Brock-Purdy-Scandal-05-27
https://telegra.ph/Margaret-Atwoods-The-Testaments-TV-Series-Announced-05-27
https://telegra.ph/Handmaids-Tale-Renews-Debate-on-Womens-Rights-05-27
https://telegra.ph/Alfredo-Adame-vs-Flocking-Turkeys-05-27
https://telegra.ph/Centerpoint-Outage-Phantom-of-the-Grid-05-27
https://telegra.ph/Ryan-Yarbrough-Shuts-Down-Yankees-in-Win-05-27
https://telegra.ph/Los-Angeles-Angels-Struggle-in-2025-Season-05-27
https://telegra.ph/Sean-OMalley-Meets-Conor-McGregor-05-27
https://telegra.ph/CenterPoint-Energy-Outage-Information-and-Help-05-27

Write Comment
Return to News
  Displaying 676 through 688 of 688
Prev | First
  The time now is 6:34:21 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *