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 801 through 809 of 809
Prev | First
  The time now is 2:56:06 PM ET.
Any comment problems? E-mail us
#801 By 4240821 (94.177.13.246) at 3/7/2026 9:55:38 PM
https://telegra.ph/Tehrans-Secret-Nuclear-Deal-What-the-West-Really-Knows-03-01
https://telegra.ph/Cremoneses-Shocking-Comeback-Leaves-Milan-Stunned-in-Dramatic-Serie-A-Clash-03-01
https://telegra.ph/Tokyo-Marathon-2026-Historic-Victory-as-Record-Breaking-Runner-Crosses-the-Finish-Line-in-Dramatic-Fashion-03-01
https://telegra.ph/Setu-Tu-The-Secret-Bridge-That-Changed-the-Game-03-01
https://telegra.ph/Netflix-Shocks-with-Bold-Move-What-Happens-Next-03-01-2
https://telegra.ph/Federico-Cinàs-Shocking-Comeback-How-the-Underdog-Dominated-the-Competition-03-01
https://telegra.ph/Mellemøsten-in-Flames-War-Oil-and-Chaos-as-Nations-Clash-Over-Power-03-01
https://telegra.ph/Cyprus-A-Hidden-Gem-of-the-MediterraneanDiscover-Its-Stunning-Beaches-and-Rich-History-03-01
https://telegra.ph/Warriors-vs-Lakers-Clash-of-Titans-in-NBA-Showdown-03-01
https://telegra.ph/Sargonia-Dankha-The-Shocking-Truth-That-Will-Leave-You-Speechless-03-01

#802 By 4240821 (94.177.13.246) at 3/10/2026 4:51:03 AM
https://telegra.ph/Paramount-Plus-The-Streaming-Revolution-Awaits-02-01-2
https://telegra.ph/OL-2026-Summit-Pledges-to-Bridge-Climate-Gap-Amid-Shifting-Alliances-02-01
https://telegra.ph/Veronika-Loubry-Shines-Bright-in-Bold-New-Narrative-02-01
https://telegra.ph/Bitcoin-Kurs-Explodes-Is-This-the-Start-of-the-Next-Bull-Run-02-01-3
https://telegra.ph/Grizzlies-vs-Timberwolves-The-Battle-for-the-Northwests-Crown-02-01
https://telegra.ph/Harry-Styles-Shocks-Fans-with-Unexpected-College-Campus-Surprise-02-01
https://telegra.ph/UFC-325-Blood-Sweat-and-Grudges---The-Rematch-No-One-Saw-Coming-02-01-4
https://telegra.ph/Charles-Oliveira-Sets-New-UFC-Record-with-Spectacular-Submission-Victory-02-01
https://telegra.ph/Lily-Collins-Stuns-in-New-Red-Carpet-Look-02-01
https://telegra.ph/Quillan-Salkilld-The-Unseen-Threat-That-Could-Change-Everything-02-01

#803 By 4240821 (178.173.249.36) at 3/17/2026 6:06:00 PM
https://telegra.ph/Mikael-Granlunds-Epic-Comeback-How-the-Swedish-Snake-Dominated-the-NHL-Again-02-22
https://telegra.ph/Uroš-Međićs-Shocking-Exit-What-Happened-to-the-Serbian-Star-02-22
https://telegra.ph/Smash-Into-Pieces-The-Hollow-Truth-Behind-the-Shocking-Collapse-02-22
https://telegra.ph/William-Hill-Bets-Big-on-AIWill-It-Pay-Off-02-22
https://telegra.ph/Tyler-Herros-Epic-Comeback-How-the-NBAs-Rising-Star-Overcame-Injury-to-Dominate-Again-02-22
https://telegra.ph/Louisa-Harlands-Shocking-Revelation-The-Truth-Behind-the-Scandal-That-Rocked-the-Nation-02-22
https://telegra.ph/Bobsleigh-Crash-Leaves-Spectators-in-Shock-as-Speeding-Team-Loses-Control-Mid-Race-02-22
https://telegra.ph/Matthew-McConaugheys-Bold-Move-How-the-Oscar-Winning-Actor-is-Revolutionizing-Hollywood-02-22
https://telegra.ph/Jalen-Greens-Epic-Dunk-Shocks-NBAIs-This-the-Next-Superstar-02-22
https://telegra.ph/4-Million-Lotto-Jackpot-Winner-Revealed-Shocking-Surprise-in-Tonights-Draw-02-22

#804 By 4240821 (178.173.249.36) at 3/18/2026 12:00:49 PM
https://telegra.ph/Samsunspors-Shocking-Comeback-Last-Minute-Goal-Secures-Unlikely-Victory-02-19
https://telegra.ph/Stroomstoring-Eindhoven-City-in-Chaos-as-Power-Grid-CollapsesWhats-Next-02-19
https://telegra.ph/Fenerbahçe-Shocks-Istanbul-with-Last-Minute-Comeback-in-Dramatic-Derby-Victory-02-19
https://telegra.ph/Slay-the-Spire-2-The-Ultimate-Deck-Building-Showdown-Drops-Today-02-19
https://telegra.ph/Samsunspor-Shocks-the-World-Unstoppable-Attack-Dominates-the-League-02-19
https://telegra.ph/Alysa-Lius-Shocking-Confession-The-Truth-Behind-the-Viral-Scandal-That-Rocked-Hollywood-02-19
https://telegra.ph/Katarina-Witts-Shocking-Revelation-The-Truth-Behind-the-Scandal-That-Rocked-the-Industry-02-19
https://telegra.ph/Stroomstoring-Eindhoven-City-Faces-Power-Crisis-as-Grid-Collapses-Under-Demand-02-19
https://telegra.ph/Sasha-Cohens-Shocking-Revelation-The-Truth-Behind-the-Viral-Scandal-That-Rocked-Hollywood-02-19
https://telegra.ph/Curling-Norge-A-Thrilling-Showdown-at-the-World-Championships-02-19

#805 By 4240821 (178.173.249.36) at 3/19/2026 4:01:51 AM
https://telegra.ph/Helen-Mirren-Shocks-Fans-with-Bold-New-RoleHeres-What-Shes-Up-to-Next-03-03
https://telegra.ph/MacBook-Pro-2024-The-Ultimate-Powerhouse-for-Pros-and-Creatives-03-03
https://telegra.ph/Helen-Mirren-Shocks-Fans-with-Bold-New-Role-in-High-Stakes-Drama-03-03
https://telegra.ph/Melbourne-City-FC-vs-Buriram-United-Asian-Champions-League-Clash-Heats-Up-03-03
https://telegra.ph/Jean-Noël-Barrots-Bold-Move-Frances-New-Leader-Strikes-First-in-EU-Crisis-03-03
https://telegra.ph/Giulia-Honeggers-Bold-Move-Shakes-the-Fashion-World--Heres-What-It-Means-03-03
https://telegra.ph/Smartwings-Slashes-Fares-Cheap-Flights-to-Europe-in-2024-03-03
https://telegra.ph/Mi-Carpeta-Ciudadana-El-Secreto-que-el-Gobierno-No-Quiere-que-Conozcas-03-03
https://telegra.ph/Smartwings-Unveils-Revolutionary-Budget-Friendly-Flights-with-Cutting-Edge-Tech-03-03
https://telegra.ph/Weerbericht-Extreme-Hittegolven-Treffen-EuropaMeteorologen-Waarschuwen-voor-Recordtemperaturen-03-03

#806 By 4240821 (178.173.249.36) at 3/19/2026 4:40:53 PM
https://telegra.ph/WILLI-BANNER-and-PAMELA-REIF-Make-Headlines-With-Unexpected-Collaboration-Rumors-03-14
https://telegra.ph/kimi-antonelli-Set-to-Break-Barriers-and-Launch-First-Fully-Electric-Grand-Prix-Series-03-14
https://telegra.ph/Government-Shutdown-2026-Sparks-Global-Economic-Chaos-as-Politicians-Stand-Grounded-in-Gridlocked-Politics-03-14
https://telegra.ph/Kimi-Antonelli-drops-a-surprise-AI-prototype-at-the-Bloomberg-Innovation-summit-sparking-a-wave-of-investor-interest-03-14
https://telegra.ph/Rugby-Fixtures-Reveal-Shocking-Matchups-Ahead-of-Final-Showdown-03-14
https://telegra.ph/Courtier-Immobilier-Simon-Laberge-Reveals-Massive-Real-Estate-Scam-Prices-Plunge-03-14
https://telegra.ph/Antonelli-Unveils-Revolutionary-Tech-Skyrocketing-Industry-03-14
https://telegra.ph/Dz-Mafia-Is-Arrested-After-New-City-Wide-Crackdown-03-14
https://telegra.ph/NYT-Connections-The-Puzzle-Thats-Taking-the-Internet-by-Storm-03-14
https://telegra.ph/Biathlon-Programme-Shocks-with-Dramatic-Twist-in-Olympic-Showdown-03-14

#807 By 4240821 (178.173.249.36) at 3/26/2026 9:49:39 AM
https://telegra.ph/날씨-í­í’-서울ì—-초강수-경보-발령êµí†µ-마비와-í™ìˆ˜-ìš°ë ¤-03-05
https://telegra.ph/Livø-The-Secret-to-Unlocking-Infinite-EnergyScientists-Say-Its-Real-03-05
https://telegra.ph/Journal-de-Québec-Unveils-Shocking-Exclusive-Major-Political-Scandal-Rocks-Province-03-05
https://telegra.ph/IND-vs-ENG-Epic-Clash-in-Cricket-History--Who-Will-Reign-Supreme-03-05
https://telegra.ph/Samuele-Riccis-Shocking-Comeback-The-Underdog-Who-Defied-All-Odds-03-05
https://telegra.ph/iPhone-17e-The-Future-of-Smartphones-is-HereBut-Will-It-Break-the-Mold-03-05
https://telegra.ph/NRL-Stars-Shocked-as-Controversial-Call-Sparks-Massive-Uproar-03-05
https://telegra.ph/Alex-Schwazers-Shocking-Revelation-The-Truth-Behind-the-Viral-Scandal-That-Rocked-the-World-03-05
https://telegra.ph/Gina-Rineharts-Fence-Dispute-Sparks-Fresh-Controversy-in-Western-Australia-03-05
https://telegra.ph/RTE-Radio-1-Unveils-Shocking-New-Music-LineupWill-Fans-Be-Surprised-03-05

#808 By 4240821 (178.173.249.36) at 3/27/2026 9:55:23 PM
https://telegra.ph/GA-Lottery-Hits-Record-Sales-With-Historic-10Million-Jackpot-Claim-02-12
https://telegra.ph/Kim-Jong-Un-Unleashes-Surprise-Military-Parade-Global-Leaders-Brace-for-Unprecedented-Tension-02-12
https://telegra.ph/Laurence-Fournier-Beaudry-Shocks-Nation-With-Surprise-Resignation-Amid-Massive-Corruption-Probe-02-12
https://telegra.ph/Bagger-Atlas-Enters-Insolvenzverfahren-Amid-Financial-Rupture-02-12
https://telegra.ph/Accor-Stadium-Set-to-Host-Epic-Championship-in-RecordBreaking-Night-02-12
https://telegra.ph/Pauvreté-en-Belgium-Looms-as-Social-Services-Collapse-and-Public-Outcry-Escalates-in-2026-Crisis-02-12
https://telegra.ph/Lizzy-Yarnold-Shocks-Fans-With-Unexpected-Olympic-Retire-Announcement--The-Curling-Queens-Career-Takes-a-Sudden-Turn-02-12
https://telegra.ph/RIVM-Drinkwater-Directive-Experts-Warn-Hot-Water-May-Flush-Out-New-Virus-Variants-02-12
https://telegra.ph/Powerball-Result-Unveiled-15-Billion-Jackpot-Sets-New-Lottery-Record-Winners-Await-02-12
https://telegra.ph/Skeleton-Shock-Ancient-Ruins-Reveal-Intact-Human-Frame-That-Blows-Up-Archaeological-Predictions-02-12

#809 By 4240821 (185.196.41.229) at 3/29/2026 10:58:04 PM
https://telegra.ph/RKI-Warns-New-COVID-Variant-Spreading-Faster-Than-EverExperts-Demand-Urgent-Action-02-26
https://telegra.ph/Punch-the-Monkey-The-Shocking-Truth-Behind-the-Viral-Trend-Thats-Dividing-the-Internet-02-26
https://telegra.ph/Canadiens-Storm-Back-in-Thrilling-Comeback-Defeating-Rivals-in-Last-Minute-Drama-02-26
https://telegra.ph/Olivia-Deans-Shocking-Confession-The-Truth-Behind-the-Scandal-That-Rocked-Hollywood-02-26
https://telegra.ph/Quinty-Misiedjans-Shocking-Comeback-The-Underdog-Who-Defied-All-Odds-02-26
https://telegra.ph/Ibercaja-Scandal-Shocking-Revelations-as-Bank-Faces-Massive-Fraud-Investigation-02-26
https://telegra.ph/Mette-Frederiksens-Bold-Move-Denmarks-Prime-Minister-Stuns-Europe-with-Unprecedented-Policy-Shift-02-26
https://telegra.ph/West-Indies-vs-South-Africa-Epic-T20-Thriller-Ends-in-Last-Ball-Drama-02-26-3
https://telegra.ph/Sophie-Elises-Shocking-Revelation-The-Truth-Behind-the-Viral-Mystery-That-Left-Fans-Speechless-02-26
https://telegra.ph/Olidatas-Shocking-Discovery-The-Hidden-Truth-Behind-Your-Everyday-Tech-02-26

Write Comment
Return to News
  Displaying 801 through 809 of 809
Prev | First
  The time now is 2:56:06 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *