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 701 through 712 of 712
Prev | First
  The time now is 9:00:52 AM ET.
Any comment problems? E-mail us
#701 By 4240821 (178.217.45.42) at 11/23/2025 10:08:47 AM
https://sexonly.top/activgd3h144g1a
https://sexonly.top/activeehea53hae
https://lustful.su/activ45aa31bcac
https://sexonly.top/activ4b332bcega
https://sexonly.top/activ332fc5db5f
https://sluts.su/activ5c1bggd335
https://sexonly.top/activ32ggcch314
https://nsfw.su/activ3faagbdh33
https://lustful.su/activf5chc1f2ec
https://smutty.su/activ3eggcaecd5

#702 By 4240821 (178.217.45.42) at 11/23/2025 1:17:56 PM
https://lustful.su/activ543531b5bg
https://sexonly.top/activhgfedhhg5h
https://sexonly.su/activc3hah24d4b
https://sexonly.top/activ1f43abg53h
https://sluts.su/activcc1ef35e44
https://sexonly.su/activdh2cfcd3ea
https://sexonly.su/activ34b53ch1dc
https://smutty.su/activbh1eeacd13
https://lustful.su/activ2ge54a12f4
https://nsfw.su/activ32133ea1gd

#703 By 4240821 (85.195.101.122) at 11/23/2025 9:12:32 PM
https://sexonly.top/activb1deab2acd
https://lustful.su/activbd4cce545h
https://sluts.su/activg22334c1d5
https://lustful.su/activghbahcad21
https://sexonly.top/activfe4a1e12hc
https://sluts.su/activagagff5fgb
https://sexonly.top/activ4b3c3hb4h5
https://nsfw.su/activd1cebb31cg
https://sluts.su/activcgab5aghhc
https://sluts.su/activd12h2eh2da

#704 By 4240821 (82.115.4.230) at 11/24/2025 5:24:40 PM
https://sexonly.su/activ5a51gb231e
https://lustful.su/activgaghhb21fe
https://smutty.su/activ5g141cfadd
https://nsfw.su/activ15da33h1g4
https://sexonly.su/activh331bfe321
https://nsfw.su/activhf52gffbad
https://sluts.su/activ12ge2h2g22
https://sexonly.su/activgabh3c252c
https://sluts.su/activ4hdh2cagge
https://lustful.su/activfg1dd3df5h

#705 By 4240821 (45.192.45.37) at 11/24/2025 8:27:09 PM
https://telegra.ph/michael-d-higgins-shocks-nation-with-surprise-address-that-pundits-call-a-game-changer-11-20
https://telegra.ph/Schneefallgrenze-surges-above-record-levels-signaling-radical-climate-shift-11-20
https://telegra.ph/bucaramanga---santa-fe-ignites-a-cross-country-showdown-electrifying-fans-and-shaking-up-the-headlines-11-20
https://telegra.ph/Morgan-Freemans-Final-Film-A-Heartfelt-Farewell-to-Hollywood-11-20
https://telegra.ph/Clash-Set-to-Ignite-Raptors-Face-Off-Against-76ers-in-Epic-Showdown-11-20
https://telegra.ph/Gustav-Klimts-Masterpiece-Sells-for-Record-Breaking-130-Million-11-20
https://telegra.ph/nathalie-benko-stuns-at-gala-with-daring-look-igniting-a-social-media-firestorm-11-20
https://telegra.ph/darryl-brohman-ignites-social-media-with-blistering-post-match-take-11-19
https://telegra.ph/oman-erupts-onto-the-world-stage-as-bold-reforms-unleash-a-digital-gold-rush-11-19
https://telegra.ph/Nvidia-earnings-skyrocket-to-new-heights-redefining-industry-standards-11-19-3

#706 By 4240821 (82.115.4.230) at 11/25/2025 1:20:29 PM
https://sluts.su/activhd3hce2e13
https://sexonly.top/activd32fa3a3ae
https://smutty.su/activ3fhg5hdgf2
https://sexonly.top/activ353bh11ebh
https://sluts.su/activg5eag1dch3
https://sexonly.su/activbgacac2ehh
https://smutty.su/activac44aeah4f
https://sexonly.su/activb11g33ah5e
https://lustful.su/activeb511e4hbf
https://nsfw.su/activ5e2ggdagac

#707 By 4240821 (208.123.185.42) at 11/25/2025 6:56:36 PM
https://telegra.ph/Silvia-Abrils-Bold-Move-A-Game-Changer-in-the-Fashion-Industry-11-20
https://telegra.ph/Viral-Mutation-Sparks-Global-Alert-New-VirusMutation-Threatening-Humanity-11-20
https://telegra.ph/Heat-Warriors-Ignite-the-Arena-in-Explosive-Battle-11-20
https://telegra.ph/Gustav-Klimts-Masterpieces-Redefine-Modern-Art-with-Stroke-of-Genius-11-20-3
https://telegra.ph/Auckland-Airport-Unveils-Futuristic-Terminal-The-Skys-No-Longer-the-Limit-11-20
https://telegra.ph/Donovan-Mitchell-Sparks-Unstoppable-Comeback-Jazz-Star-Breaks-Records-in-Stunning-Victory-11-20
https://telegra.ph/Marcus-Mumfords-New-Album-A-Folk-Rock-Masterpiece-11-20
https://telegra.ph/West-Virginias-Hidden-Treasure-Uncover-the-Mountain-States-Secret-Wonders-11-20-2
https://telegra.ph/De-Hanslers-Shake-Up-Music-Scene-with-Unexpected-Hit-11-20-2
https://telegra.ph/West-Virginias-Hidden-Treasure-Uncover-the-Mountain-States-Secret-Wonders-11-20

#708 By 4240821 (208.123.185.42) at 11/27/2025 12:43:39 AM
https://smutty.su/activgb14ac5d3d
https://lustful.su/activ4214hga45a
https://smutty.su/activ25d5c2a2ae
https://sluts.su/activdf225edd21
https://lustful.su/activfha21eab5d
https://smutty.su/activeca4eg422d
https://nsfw.su/activcccfag545d
https://lustful.su/activc3cd1c4hd3
https://sexonly.su/activ2423aaf4ff
https://sexonly.top/activfhgfgce12c

#709 By 4240821 (208.123.185.42) at 11/27/2025 5:11:44 AM
https://smutty.su/activacdfbg35b4
https://lustful.su/active44ge5c1cd
https://nsfw.su/activ1dedfac52f
https://nsfw.su/activd3gh5e2eca
https://sexonly.su/activg534hdfgaf
https://nsfw.su/activg1h1a24aaa
https://lustful.su/active4c2hhfdga
https://sluts.su/activd3fb22gf1c
https://sexonly.su/activ115e41c3gc
https://sluts.su/activf1ec212bda

#710 By 4240821 (208.123.185.42) at 11/27/2025 6:24:18 PM
https://telegra.ph/Global-Surge-at-aalborg-lufthavn-as-Nordic-Travel-Rebounds-in-Dramatic-Fashion-11-17-3
https://telegra.ph/scarlett-johansson-sparks-fashion-frenzy-on-the-red-carpet-with-a-daring-look-11-17
https://telegra.ph/nigeria-vs-congo-erupts-as-rivals-clash-in-a-high-stakes-showdown-for-glory-11-17-2
https://telegra.ph/Sverre-Magnus-Shatters-Expectations-The-Princes-Unexpected-Rise-to-International-Stardom-11-17
https://telegra.ph/bradley-cooper-shocks-fans-with-the-most-outrageous-red-carpet-look-of-the-decade-11-17
https://telegra.ph/Svenska-Dagbladet-Uncovers-Shocking-New-Evidence-in-Major-Political-Scandal-11-17
https://telegra.ph/Global-Stage-Ignites-as-winter-olympics-2026-Redefines-the-Games-11-17
https://telegra.ph/Breaking-sinner-unmasked-as-scandal-explodes-across-town-11-17
https://telegra.ph/Hot-take-dillon-danis-goes-all-out-in-explosive-promo-11-17-2
https://telegra.ph/stephen-curry-erupts-for-50-points-as-Warriors-stun-the-league-with-a-late-game-comeback-11-17

#711 By 4240821 (208.123.185.42) at 11/27/2025 9:20:08 PM
https://smutty.su/activh422bhdda4
https://sexonly.top/activ51ec331adg
https://lustful.su/activ523bd41cgf
https://sexonly.su/activ1gafbh4gec
https://smutty.su/activd2gheb55g5
https://sluts.su/activ4ghbf3b1gd
https://sexonly.top/activ5a2hcgh5ac
https://nsfw.su/activ4c2bdddd2b
https://lustful.su/activ412hhb545e
https://sluts.su/activgdaacc54e4

#712 By 4240821 (208.123.185.42) at 11/28/2025 1:54:52 AM
https://telegra.ph/Javier-Ruizs-Unstoppable-Run-Breaks-World-Record-in-Incredible-Comeback-11-25
https://telegra.ph/medianlohn-Boom-Real-Wages-Surge-as-Buying-Power-Rebounds-Across-the-Board-11-25-3
https://telegra.ph/Heatwave-Havoc-regina-weather-Pushes-Regina-to-Record-Breaking-Highs-11-25
https://telegra.ph/Søren-Franks-Bold-Move-The-Surprising-Shift-in-Global-Markets-11-25
https://telegra.ph/falun-skispringen-Sparks-World-Cup-Frenzy-as-Rising-Star-Shatters-Records-11-25
https://telegra.ph/Breaking-Connections-The-Unexpected-Link-Between-Climate-Change-and-Global-Trade-11-25
https://telegra.ph/Azoren-Islands-Surfers-Ride-the-Waves-of-Unforgettable-Adventure-11-25
https://telegra.ph/Alaska-Airlines-soars-to-new-heights-with-groundbreaking-eco-friendly-fleet-upgrade-11-25
https://telegra.ph/Lukas-Kaunietis-Wows-Dublin-Airport-Sending-Social-Media-Into-Overdrive-11-25
https://telegra.ph/Falun-Gong-Practitioners-Demand-Justice-After-Mysterious-Deaths-11-25

Write Comment
Return to News
  Displaying 701 through 712 of 712
Prev | First
  The time now is 9:00:52 AM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *