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 694 of 694
Prev | First
  The time now is 8:45:36 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

#689 By 4240821 (82.115.4.230) at 11/14/2025 8:50:27 PM
https://sexonly.su/activc2bbf5d145
https://smutty.su/activb5aegd4f14
https://smutty.su/activ4ca5ca22hf
https://nsfw.su/activ4243b21bad
https://nsfw.su/activ5eahfeg5d2
https://sluts.su/activf2c3fa1b4e
https://lustful.su/activchafaebdd3
https://nsfw.su/activh3fe4hbgg3
https://nsfw.su/activh3g3achbfb
https://sexonly.top/activagc2afdhgb

#690 By 4240821 (82.115.4.230) at 11/15/2025 6:31:21 PM
https://lustful.su/activgf14bcbdca
https://lustful.su/activ4ahh3a25ea
https://sluts.su/activfe4hhf112a
https://sexonly.top/activd2f5d1532e
https://sexonly.top/activhde3bh3bbf
https://sexonly.top/activ2g4aechbd1
https://lustful.su/activgfgc3chhdb
https://nsfw.su/activa4cagc5af5
https://lustful.su/activ1ghde33f1b
https://sexonly.su/activb4hb3b2ca5

#691 By 4240821 (82.115.4.230) at 11/16/2025 9:40:31 AM
https://smutty.su/activbd451f1hbc
https://sluts.su/activ342cah1deg
https://nsfw.su/activ2cbd1f3ha5
https://lustful.su/activhcegf1eea5
https://nsfw.su/activ4g5fg32423
https://lustful.su/activ534335b1dc
https://smutty.su/activ1bhbh1gc3e
https://sexonly.top/activcdde1cc234
https://lustful.su/activ253c53eh2f
https://smutty.su/activg2b4e24343

#692 By 4240821 (45.192.45.37) at 11/17/2025 12:17:42 PM
https://telegra.ph/simon-harmer-unleashes-a-jaw-dropping-show-in-a-fictional-cricket-clash-that-fans-wont-forget-11-15
https://telegra.ph/Sinterklaas-Set-to-Surprise-Millions-with-Unprecedented-Holiday-Celebration-11-15-2
https://telegra.ph/carlos-prates-unleashes-secret-project-sending-markets-into-a-frenzy-11-15
https://telegra.ph/gerrie-van-der-klei-drops-jaw-dropping-streetwear-line-igniting-fashion-wildfire-online-11-15
https://telegra.ph/jarryd-nurden-Unleashes-Jaw-Dropping-Comeback-as-Crowd-Roars-in-Historic-Night-11-15-2
https://telegra.ph/Explosive-polska-holandia-Showdown-Sends-Shockwaves-Across-Europe-11-15-2
https://telegra.ph/Freakier-Friday-Frenzy-Unleash-the-Night-and-Break-the-Internet-11-15
https://telegra.ph/Oil-Boom-in-guyana-Sends-Global-Markets-Into-a-Frenzy-11-15
https://telegra.ph/Breaking-john-beam-Unveils-a-Game-Changing-Breakthrough-That-Shakes-the-Industry-11-15-2
https://telegra.ph/sanson-Sparks-Global-Frenzy-with-Breakthrough-Project-That-Changes-Everything-11-15

#693 By 4240821 (82.115.4.230) at 11/17/2025 3:20:28 PM
https://nsfw.su/activcbg2d3cee2
https://sluts.su/activ342533dh25
https://sluts.su/activ4h5fc23fbc
https://sexonly.su/activ353h4eb1cf
https://nsfw.su/activd2b2dgefac
https://nsfw.su/activ1d3fb1cagh
https://sexonly.top/activa2db53abaf
https://sluts.su/activ21fd1cfcb2
https://sluts.su/activeff5ggcegd
https://smutty.su/activcabhfgg53g

#694 By 4240821 (45.192.45.37) at 11/17/2025 7:24:10 PM
https://telegra.ph/Kris-Bryants-Disappearance-Baseballs-Dark-Secret-05-26
https://telegra.ph/Jackson-Holliday-Hype-or-Bust-in-MLB-05-26
https://telegra.ph/Reds-Edge-Royals-in-Nail-Biting-Game-05-26
https://telegra.ph/Kris-Bryants-Rocky-Road-in-Colorado-05-26
https://telegra.ph/Jason-Batemans-Career-Journey-to-Success-05-26
https://telegra.ph/Jason-Bateman-Retrieves-Missing-Movie-Script-05-26
https://telegra.ph/Blue-Jays-Curse-Mystery-at-the-Mound-05-26
https://telegra.ph/Severe-Storms-Flood-Houston-Power-Outages-05-26
https://telegra.ph/Arthur-Rinderknechs-Tennis-Comeback-Story-05-26
https://telegra.ph/Rockies-Edge-Cubs-in-Wild-Card-Thriller-05-26

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

 

  *  
  *   *