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 451 through 472 of 472
Prev | First
  The time now is 7:54:53 PM ET.
Any comment problems? E-mail us
#451 By 4240821 (142.252.83.34) at 3/15/2025 6:31:16 PM
https://telegra.ph/Charlie-Sheens-Wild-Comeback-and-Personal-Drama-03-12
https://telegra.ph/Wisconsin-Badgers-Football-Overview-and-Tradition-03-13
https://telegra.ph/Dodgers-Tokyo-Series-Baseball-Unites-Fans-03-15
https://telegra.ph/Union-Berlin-Triumphs-Over-Bayern-Munich-03-15
https://telegra.ph/Sofias-Vanishing-in-Puebla-Toluca-Mystery-03-15
https://telegra.ph/Eclipse-Lunar-Spirits-Call-to-Unity-03-14
https://telegra.ph/Grizzlies-Edge-Pelicans-in-Thrilling-Battle-03-10
https://telegra.ph/Russell-Wilsons-Journey-to-NFL-Glory-03-10
https://telegra.ph/Role-and-Importance-of-Personal-Injury-Lawyers-03-10
https://telegra.ph/Jazz-and-Celtics-Clash-in-Epic-Showdown-03-11

#452 By 4240821 (45.192.37.83) at 3/17/2025 2:46:16 PM
https://telegra.ph/Tokyo-Ghoul-True-Crime-in-the-Shadows-03-11
https://telegra.ph/UC-Davis-Basketball-Facts-and-Highlights-03-13
https://telegra.ph/Venezuelan-Immigrants-Seek-Refuge-Amid-Crisis-03-17
https://telegra.ph/Celtics-and-Heats-Game-7-Thriller-03-15
https://telegra.ph/User-Inquires-About-Notre-Dame-Basketball-Updates-03-11
https://telegra.ph/Yale-Basketball-History-Rivalries-and-Achievements-03-15
https://telegra.ph/Union-Berlin-Upsets-Bayern-Munich-in-Thrilling-Match-03-15
https://telegra.ph/Clippers-Outlast-Hawks-in-Overtime-Thriller-03-15
https://telegra.ph/Buddy-Hields-NBA-Shooting-Strengths-Discussed-03-11
https://telegra.ph/Ravinia-2025-Schedule-Fried-Facts-Preview-03-13

#453 By 4240821 (193.232.228.229) at 3/18/2025 3:19:01 PM
https://telegra.ph/BYU-Basketball-Facts-and-Traditions-03-13
https://telegra.ph/Iga-Swiateks-Unseen-Tennis-Match-03-15
https://telegra.ph/Pope-Francis-Innovator-Advocate-and-Visionary-03-16
https://telegra.ph/Akron-Zips-Basketball-Rise-and-Success-03-16
https://telegra.ph/50M-Starbucks-Lawsuit-Over-Burn-Injury-03-16
https://telegra.ph/Trinity-Rodmans-Soccer-Career-Highlights-03-12
https://telegra.ph/Understanding-Weather-Alerts-Watch-vs-Warning-03-15
https://telegra.ph/Ipswich-Town-vs-Nottingham-Forest-Match-Analysis-03-15
https://telegra.ph/Tennessee-Basketball-Dominates-Kentucky-in-SEC-03-15
https://telegra.ph/Suns-vs-Rockets-Matchup-Insights-03-13

#454 By 4240821 (93.183.102.81) at 3/19/2025 9:33:19 AM
https://telegra.ph/Memphis-Tigers-Rise-to-National-Championship-03-14
https://telegra.ph/Detroit-Weather-Four-Seasons-and-Extreme-Conditions-03-16
https://telegra.ph/Madison-Keys-Wins-First-Wimbledon-Title-03-12
https://telegra.ph/Jeremy-Stephens-Retires-After-Storied-MMA-Career-03-13
https://telegra.ph/VCU-Basketball-Stars-Night-Out-Sparks-Buzz-03-15
https://telegra.ph/Josh-Brolins-Unexpected-Script-Discovery-03-18
https://telegra.ph/Helldivers-Secure-Warbond-on-Veylor-9-03-18
https://telegra.ph/Tee-Higgins-Signs-Bengals-Extension-Deal-03-17
https://telegra.ph/Stars-Triumph-Over-Avalanche-in-Cosmic-Battle-03-16
https://telegra.ph/Real-Madrid-Survives-Dramatic-Deportivo-Clash-03-15

#455 By 4240821 (193.36.231.95) at 3/19/2025 10:48:40 PM
https://telegra.ph/Michelle-Monaghans-Career-and-Recent-Projects-03-19
https://telegra.ph/Alan-Simpson-Politician-Advocate-and-Bipartisan-Icon-03-14
https://telegra.ph/Donald-Trump-and-Astronauts-Context-Provided-03-19
https://telegra.ph/Venezuelan-Immigrants-Seek-Refuge-Amid-Crisis-03-17
https://telegra.ph/Rolling-Loud-2025-Global-Mystery-Solved-03-17
https://telegra.ph/Purdue-Basketballs-Historic-NCAA-Championship-Run-03-14
https://telegra.ph/Inquiry-about-Nicole-Brydon-Blooms-background-03-16
https://telegra.ph/Final-Jeopardy-The-Baker-Street-Heist-03-19
https://telegra.ph/Lawrence-ODonnell-Launches-Multi-Platform-Media-Venture-03-14
https://telegra.ph/Arsenal-vs-Chelsea-Rivalry-History-and-Recent-Form-03-16

#456 By 4240821 (194.59.12.109) at 3/21/2025 2:04:41 AM
https://telegra.ph/Travel-Ban-Exposes-Global-Bioweapon-Plot-03-15
https://telegra.ph/Spencer-Strider-Braves-Pitcher-Overview-03-17
https://telegra.ph/Leganés-Triumphs-Over-Betis-in-Dramatic-Match-03-16
https://telegra.ph/Cheyenne-Frontier-Days-Celebrating-Western-Heritage-03-17
https://telegra.ph/Liverpool-Triumphs-in-Dramatic-Newcastle-Clash-03-16
https://telegra.ph/76ers-vs-Rockets-Experience-vs-Youth-03-18
https://telegra.ph/Missouri-vs-Florida-Sports-Matchup-Analysis-03-15
https://telegra.ph/Courtney-Stoddens-Journey-to-Authenticity-03-20
https://telegra.ph/Exploring-the-Hudson-Rivers-History-and-Importance-03-18
https://telegra.ph/Avalanches-Fall-from-Glory-in-NHL-Scandal-03-16

#457 By 4240821 (194.190.179.77) at 3/21/2025 9:53:08 PM
https://swipefap.com/bronenhuayprov308
https://swipefap.com/paufensdero849
https://swipefap.com/unlcomcobi558
https://swipefap.com/taibronoonpur357
https://swipefap.com/pokoslighwal665
https://swipefap.com/oligtufu598
https://swipefap.com/tiolijecre894
https://swipefap.com/inatspikeh627
https://swipefap.com/travounenpo187
https://swipefap.com/xirillredse773

#458 By 4240821 (212.193.142.235) at 3/22/2025 11:10:31 AM
https://www.xfree.com/racloreacdo257
https://www.xfree.com/pazcmanflota973
https://www.xfree.com/mitelychthea611
https://www.xfree.com/drafsohelma299
https://www.xfree.com/mingcontscomkey608
https://www.xfree.com/elcapasless87
https://www.xfree.com/whitlidedi720
https://www.xfree.com/racloreacdo257
https://www.xfree.com/warwelldulkers911
https://www.xfree.com/lenrutaree849

#459 By 4240821 (194.190.179.77) at 3/24/2025 8:25:46 PM
https://telegra.ph/Stephen-Graham-to-Star-in-New-Crime-Series-03-19
https://telegra.ph/Paulding-County-History-Growth-and-Attractions-03-16
https://telegra.ph/The-Mystery-of-the-Fluctuating-Dollar-Price-03-18
https://telegra.ph/No-16-Seed-Knocks-Out-No-1-in-NCAA-Basketball-03-17
https://telegra.ph/CIA-Headquarters-Barricade-Incident-Overview-03-19
https://telegra.ph/Charles-Leclerc-Launches-Motorsport-Charity-Initiative-03-16
https://telegra.ph/Leganés-Triumphs-Over-Betis-in-Dramatic-Match-03-16
https://telegra.ph/Chase-Elliott-Wins-Talladega-Playoff-Push-Solidified-03-17
https://telegra.ph/The-Vanishing-of-Quinten-Post-A-True-Crime-Tale-03-19
https://telegra.ph/Congress-Approves-Significant-Social-Security-Increase-03-18

#460 By 4240821 (46.232.37.254) at 3/25/2025 5:27:51 PM
https://telegra.ph/Deni-Avdijas-NBA-Potential-and-Development-03-22
https://telegra.ph/Andre-James-Signs-Raiders-Contract-Extension-03-18
https://telegra.ph/Isack-Hadjar-Rising-Motorsport-Star-Facts-03-16
https://telegra.ph/Hardik-Pandya-The-Comeback-King-Story-03-23
https://telegra.ph/Verizon-Satellite-Texting-Expansion-and-Updates-03-20
https://telegra.ph/Mizzou-Basketballs-Historic-National-Championship-Run-03-21
https://telegra.ph/Eric-Churchs-Impact-on-Country-Music-03-20
https://telegra.ph/Kimi-Antonellis-Rise-to-Formula-1-Dreams-03-16
https://telegra.ph/Ana-De-Armas-Mystery-Solved-by-Detective-03-23
https://telegra.ph/Tee-Higgins-Rising-NFL-Star-Wide-Receiver-03-17

#461 By 4240821 (46.232.36.136) at 3/26/2025 1:55:35 PM
https://telegra.ph/UNC-vs-SDSU-Basketball-Matchup-Analysis-03-19
https://telegra.ph/Dodgers-Stage-Epic-Comeback-Against-Giants-03-19
https://telegra.ph/Major-Earthquake-Strikes-Southern-California-03-18
https://telegra.ph/Womens-March-Madness-Key-Facts-and-Highlights-03-21
https://telegra.ph/St-Patricks-Day-Parade-NYC-Details-03-17
https://telegra.ph/Fortnite-Chapter-5-Season-3-Wrecked-Update-03-25
https://telegra.ph/Charles-Leclerc-Rising-Formula-1-Star-03-23
https://telegra.ph/Russell-Wilson-Traded-to-Pittsburgh-Steelers-03-25
https://telegra.ph/Interesting-Facts-About-Womens-Basketball-Bracket-03-17
https://telegra.ph/Carrie-Underwoods-Latest-Career-and-Personal-Updates-03-17

#462 By 4240821 (212.193.142.235) at 3/27/2025 10:47:02 AM
https://telegra.ph/Satyanarayana-Raju-Selfless-Hero-of-Anantapur-03-23
https://telegra.ph/Helldivers-Secure-Warbond-on-Veylor-9-03-18
https://telegra.ph/Final-Destination-Bloodlines-Trailer-Discussion-03-25
https://telegra.ph/Hunter-Tames-Storm-Serpent-in-Wilds-03-25
https://telegra.ph/Stephen-Grahams-Career-and-Notable-Roles-03-19
https://telegra.ph/Severance-Season-3-Secrets-and-Reckoning-Unveiled-03-21
https://telegra.ph/Historic-Upset-in-NCAA-Basketball-Tournament-03-19
https://telegra.ph/Justin-Fields-Traded-to-Pittsburgh-Steelers-03-26
https://telegra.ph/Jenna-Ortega-Solves-Midnight-Treasure-Mystery-03-26
https://telegra.ph/Ethiopia-Egypt-Nile-Conflict-Heats-Up-03-21

#463 By 4240821 (212.193.142.235) at 3/27/2025 9:18:09 PM
https://telegra.ph/Denmark-vs-Portugal-Epic-Clash-in-Football-Showdown-03-20
https://telegra.ph/Ryan-Rollins-NBA-Career-Update-Inquiry-03-21
https://telegra.ph/UCLA-Basketball-Updates-and-Information-03-21
https://telegra.ph/Make-up-a-news-story-about---Hay-03-27
https://telegra.ph/Naji-Marshall-Signs-with-Dallas-Mavericks-03-26
https://telegra.ph/Stranger-Things-Final-Chapter-Trailer-Tease-03-26
https://telegra.ph/Texas-Governor-Abbott-Stops-Tech-Rebellion-03-26
https://telegra.ph/Impact-of-HHS-Job-Cuts-on-Vulnerable-03-27
https://telegra.ph/Canada-and-Mexico-Strengthen-Trade-Climate-Ties-03-21
https://telegra.ph/Skye-Nicolson-vs-Tiara-Brown-Feud-Escalates-03-21

#464 By 4240821 (194.190.179.77) at 3/28/2025 2:30:57 PM
https://telegra.ph/Jitesh-Sharma-Steals-Show-in-IPL-Thriller-03-28
https://telegra.ph/Clarifying-Information-About-Aniket-Verma-03-27
https://telegra.ph/Supreme-Court-Gavel-Mishap-and-Resolution-03-26
https://telegra.ph/Justin-Bieber-Vanished-and-Never-Found-03-25
https://telegra.ph/Taylor-Tomlinson-Stand-Up-Comedy-and-Personal-Journey-03-27
https://telegra.ph/Final-Destination-Bloodlines-Rumors-and-Updates-03-26-2
https://telegra.ph/Honduras-Fights-Hurricane-Lorenzo-Together-03-26
https://telegra.ph/South-Bay-Lakers-Claim-G-League-Championship-03-26
https://telegra.ph/Robinhood-Bandit-Exploits-Fintech-Loophole-03-27
https://telegra.ph/Egypt-Triumphs-Over-Sierra-Leone-in-Thrilling-Match-03-25

#465 By 4240821 (194.190.179.77) at 3/29/2025 6:58:11 AM
https://telegra.ph/Kevins-Discovery-of-Familys-Hidden-Legacy-03-27
https://telegra.ph/Shohei-Ohtani-Dominates-in-Dodgers-Debut-03-28
https://telegra.ph/Egypt-Launches-Neptune-Explorer-Submarine-Tourism-03-27
https://telegra.ph/Mookie-Betts-Health-Status-Update-03-29
https://telegra.ph/James-Marsdens-Humorous-Cyclops-Adventures-03-26
https://telegra.ph/Survivor-Season-48-Announcement-Teases-Twists-03-27
https://telegra.ph/Baseball-Rivalry-Ends-in-Thrilling-Victory-03-27
https://telegra.ph/Auburn-Basketball-Recent-Success-and-Future-Outlook-03-29
https://telegra.ph/Tufts-Student-Rumeysa-Ozturk-Detained-Briefly-03-27
https://telegra.ph/Prince-Yadav-Launches-Education-Initiative-in-India-03-27

#466 By 4240821 (194.190.179.77) at 3/30/2025 7:23:54 PM
https://telegra.ph/UConn-Hockey-Murder-Mystery-Unsolved-Case-03-29
https://telegra.ph/Christian-Benfords-Rise-to-NFL-Stardom-03-29
https://telegra.ph/Barcelona-vs-Wolfsburg-Womens-Football-Updates-03-27
https://telegra.ph/Vinny-Capras-Career-Night-with-Blue-Jays-03-27
https://telegra.ph/Finding-the-New-Moon-for-Eid-2025-03-28
https://telegra.ph/Make-up-a-news-story-about---Mar-03-28
https://telegra.ph/Dodgers-Dominate-with-Stellar-Performances-03-29
https://telegra.ph/Senate-Cracks-Down-on-Bank-Overdraft-Fees-03-28
https://telegra.ph/Solo-Leveling-Season-3å¯èƒ½æ€§æŽ¢è®¨-03-29
https://telegra.ph/Earthquake-Information-and-Safety-Tips-Bangkok-03-28

#467 By 4240821 (142.252.120.118) at 3/31/2025 8:48:39 AM
https://telegra.ph/Kings-and-Magic-Forge-Unity-in-Eldoria-03-29
https://telegra.ph/Dodgers-Dominate-Giants-in-High-Scoring-Game-03-29
https://telegra.ph/Kelvin-Gastelum-Returns-to-Middleweight-Division-03-29
https://telegra.ph/Blaze-Star-Conspiracy-Cosmic-Cover-Up-03-28
https://telegra.ph/Blackwater-Ranchs-Bloody-Secrets-Revealed-03-30
https://telegra.ph/Ryan-Conwell-Rising-Star-or-NBA-Drama-03-28
https://telegra.ph/Islanders-Struggles-vs-Lightning-Mystery-03-29
https://telegra.ph/Dodgers-vs-Tigers-Spring-Training-Update-03-29
https://telegra.ph/Taylor-Jenkins-Uncovers-Hidden-Family-Secrets-03-28
https://telegra.ph/Flash-Flood-Warning-Saves-Cedar-Hollow-Town-03-30

#468 By 4240821 (142.252.120.118) at 4/1/2025 8:29:06 AM
https://telegra.ph/Deion-Sanders-Prime-Time-Athlete-and-Coach-03-28
https://telegra.ph/Heart-of-Auburn-Basketballs-Historic-Run-03-31
https://telegra.ph/Suns-Edge-Timberwolves-in-Thrilling-NBA-Clash-03-29
https://telegra.ph/Athletic-Bilbao-Tradition-and-Pride-03-30
https://telegra.ph/U-of-M-Basketball-Buzzer-Beater-Victory-03-29
https://telegra.ph/Celtics-Grizzlies-Rivalry-Heats-Up-in-Chaos-04-01
https://telegra.ph/Nitish-Ranas-Domestic-and-IPL-Career-Update-03-30
https://telegra.ph/NYT-Connections-March-29-Hints-and-Tips-03-29
https://telegra.ph/Wordle-Hints-Helpful-or-Cheating-Debate-03-30
https://telegra.ph/Unexpected-Snow-Day-at-Willowbrook-School-03-31

#469 By 4240821 (142.252.120.118) at 4/1/2025 5:29:01 PM
https://telegra.ph/Phillies-Outslug-Nationals-in-Dominant-Win-03-30
https://telegra.ph/FA-Cup-2023-24-Schedule-and-Final-Details-03-29
https://telegra.ph/Inter-Milan-vs-Udinese-Rivalry-Highlights-03-30
https://telegra.ph/Istanbul-Derby-BeÅŸiktaÅŸ-vs-Galatasaray-Thriller-03-29
https://telegra.ph/Kings-vs-Magic-Court-Drama-Turns-Wild-03-29
https://telegra.ph/Sunita-Williams-Trailblazer-in-Space-Exploration-04-01
https://telegra.ph/Chris-Brown-Concert-Supernatural-Nightmares-Uncovered-04-01
https://telegra.ph/Orioles-Clinch-Thrilling-Walk-Off-Win-03-31
https://telegra.ph/1923-Season-Delivers-Gripping-Drama-Thrills-03-30
https://telegra.ph/Angels-and-White-Sox-Thrilling-Walk-Off-03-30

#470 By 4240821 (195.208.3.43) at 4/3/2025 12:09:40 PM
https://telegra.ph/Popeyes-Pickle-Menu-Items-Overview-04-02
https://telegra.ph/Inter-Milan-Narrowly-Defeats-Udinese-in-Serie-A-03-30
https://telegra.ph/Jameson-Williams-From-Setbacks-to-Super-Bowl-Glory-04-01
https://telegra.ph/Massive-School-Closings-Leave-Parents-Furious-04-02
https://telegra.ph/The-Beatles-Cinematic-Impact-on-Music-and-Film-04-01
https://telegra.ph/Mets-Edge-Marlins-in-Close-Pitchers-Duel-04-01
https://telegra.ph/Denver-Nuggets-in-Turmoil-Star-Drama-Looms-04-02
https://telegra.ph/Kristian-Campbells-Midnight-Art-Heist-Adventure-04-02
https://telegra.ph/Elon-Musk-Steps-Down-as-X-Corp-CEO-04-02
https://telegra.ph/Home-Depot-Parking-Charge-Inquiry-and-Explanation-04-02-2

#471 By 4240821 (5.252.188.174) at 4/3/2025 9:31:50 PM
https://telegra.ph/Voltura-Motors-Fraud-Fires-and-the-Fall-of-Caine-04-01
https://telegra.ph/Capitals-vs-Bruins-Blood-Guts-and-Glory-04-02
https://telegra.ph/Florida-2025-Election-Chaos-and-Conspiracy-Theories-04-01
https://telegra.ph/April-Social-Security-and-SSI-Payments-Update-03-31
https://telegra.ph/Brighton-vs-Aston-Villa-Match-Preview-04-02
https://telegra.ph/Jennifer-Coolidges-Wild-Night-at-Crazy-Horse-04-01
https://telegra.ph/Teddi-Mellencamp-and-the-Time-Stealing-Music-Box-04-01
https://telegra.ph/Barcelona-Wins-Copa-Del-Rey-Final-Thriller-04-02
https://telegra.ph/Sedona-Prince-Basketball-Advocate-for-Gender-Equity-04-01
https://telegra.ph/Restoration-Hardware-Stocks-Rise-and-Resilience-04-03

#472 By 4240821 (142.111.231.75) at 4/5/2025 9:35:13 AM
https://telegra.ph/Ford-Employee-Discounts-Scandal-or-Perk-04-03
https://telegra.ph/Warriors-Edge-Grizzlies-in-Overtime-Thriller-04-02
https://telegra.ph/Current-Mortgage-Rates-and-Influencing-Factors-04-03
https://telegra.ph/Kimberlys-Unexpected-Time-Travel-Adventure-04-02
https://telegra.ph/Wordle-Hint-Pros-Cons-and-Usage-Tips-04-04
https://telegra.ph/Chicagos-Week-of-Unpredictable-Weather-04-02
https://telegra.ph/John-Wick-5-Legacy-and-Retribution-04-01
https://telegra.ph/Lorenzo-Sonego-Triumphs-in-Monte-Carlo-Masters-04-03
https://telegra.ph/Nottingham-Forest-vs-Man-United-Match-Preview-04-01
https://telegra.ph/Trump-Promises-New-Tariffs-in-2024-Campaign-04-02

Write Comment
Return to News
  Displaying 451 through 472 of 472
Prev | First
  The time now is 7:54:53 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *