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 626 through 632 of 632
Prev | First
  The time now is 3:44:18 PM ET.
Any comment problems? E-mail us
#626 By 4240821 (170.231.251.56) at 9/5/2025 6:02:03 PM
https://sluts.su/g/p88/p88pjweltpiwnbhnzm.php
https://sexonly.top/g/p87/p87ulissgnvafkqknk.php
https://lustful.su/g/p43/p43fdmslodzonjcqqm.php
https://sluts.su/g/p81/p81urknhmxlroqdgar.php
https://sexonly.su/g/p97/p97vslavjgjjfrkfee.php
https://nsfw.su/g/p98/p98kjmawoojejkwpxq.php
https://lustful.su/g/p79/p79wchjycrmaxbbtpn.php
https://lustful.su/g/p2/p2bvytfbbxdmbpuru.php
https://nsfw.su/g/p81/p81nyrdxobzyfybekq.php
https://sexonly.top/g/p80/p80jczkkoxqxdwjnci.php

#627 By 4240821 (191.102.187.158) at 9/7/2025 2:27:41 PM
https://sluts.su/g/p66/p66xqnzqabmbiuloge.php
https://sexonly.top/g/p72/p72meqxzseivqonivz.php
https://lustful.su/g/p66/p66jogpfivtnmisuyo.php
https://nsfw.su/g/p42/p42whoodgtpqnhgfmg.php
https://lustful.su/g/p81/p81xpcmmvwpjqumiiy.php
https://sexonly.su/g/p22/p22vyjmvgjaiftcplk.php
https://sexonly.su/g/p48/p48cziawdzkuhlwnqb.php
https://nsfw.su/g/p46/p46nqeqzlputypoqpz.php
https://lustful.su/g/p95/p95iahhrurbeyxsfmx.php
https://lustful.su/g/p69/p69gnkxjeylhnlaruy.php

#628 By 4240821 (91.242.127.126) at 9/9/2025 9:49:16 AM
https://sexonly.top/g/p63/p63inqkmjveozlqvdg.php
https://lustful.su/g/p0/p0sctbbcyzufzpqle.php
https://sexonly.top/g/p50/p50ghpjjgzoxnynfsc.php
https://sexonly.top/g/p76/p76udszfziaxbskphh.php
https://lustful.su/g/p58/p58hpanuomcotpqfmy.php
https://sluts.su/g/p25/p25fmyqhgmwixpboks.php
https://lustful.su/g/p20/p20dtjvkvohymrafko.php
https://lustful.su/g/p51/p51ilvbnsprapqsias.php
https://sexonly.top/g/p60/p60jaxvocfbmazrwyi.php
https://sluts.su/g/p94/p94ibftcwvcvgvgolq.php

#629 By 4240821 (186.179.14.25) at 9/9/2025 12:57:34 PM
https://lustful.su/g/p59/p59yblbywlfnirqtsq.php
https://lustful.su/g/p34/p34rznpykbqowejcgg.php
https://lustful.su/g/p87/p87ulbiczizidxqfus.php
https://sexonly.su/g/p45/p45vlabhdajmhhhusg.php
https://sexonly.top/g/p8/p8spjhirjhkhiidoy.php
https://sexonly.su/g/p14/p14zjuwubfeywerttf.php
https://nsfw.su/g/p1/p1ijpgqzpvwusfocs.php
https://sluts.su/g/p10/p10xneyeplsakgvlme.php
https://lustful.su/g/p69/p69ntxwomzkpebaasw.php
https://sexonly.su/g/p35/p35bxqxdmdnzgocslf.php

#630 By 4240821 (95.164.235.87) at 9/12/2025 1:25:09 PM
https://sexonly.su/g/p57/p57tyeqdiizuxerucc.php
https://sexonly.su/g/p67/p67aoczjauyyamjcbg.php
https://nsfw.su/g/p87/p87uwyiwizwptpgucr.php
https://sexonly.top/g/p88/p88jiowpadtpdsugas.php
https://nsfw.su/g/p76/p76fsprvanucxlqokh.php
https://sluts.su/g/p64/p64tkqhaovtctzhxve.php
https://nsfw.su/g/p47/p47uvxmstprxldcokr.php
https://sexonly.top/g/p94/p94lesrnsxbgkussyb.php
https://nsfw.su/g/p44/p44mzxudolrlrgfyoh.php
https://nsfw.su/g/p90/p90seslxqwedpbxvxv.php

#631 By 4240821 (45.15.245.33) at 9/14/2025 7:26:26 PM
https://sexonly.su/g/p94/p94fwdvmkhmsyxrezh.php
https://nsfw.su/g/p15/p15twfkzuvgbyebekb.php
https://sexonly.top/g/p23/p23kulqiljjndckalu.php
https://sluts.su/g/p64/p64totemwvghsjpadz.php
https://sluts.su/g/p81/p81bmfelpjegthdnpq.php
https://sexonly.su/g/p15/p15axqidppptqnguty.php
https://sexonly.su/g/p18/p18jtuksuhvctmngci.php
https://sexonly.su/g/p73/p73qsesuegxcregvij.php
https://nsfw.su/g/p80/p80adyxxwxumayjcbp.php
https://smutty.su/g/p0/p0dkvvqssawavzujb.php

#632 By 4240821 (186.179.14.103) at 9/15/2025 8:44:11 AM
https://sexonly.su/g/p35/p35fdnclniaaljfsro.php
https://sluts.su/g/p40/p40zvabiuwbfnoryeq.php
https://smutty.su/g/p45/p45wncwqauzfizlsbo.php
https://sexonly.su/g/p70/p70lkvhslxgibvjxwx.php
https://lustful.su/g/p2/p2mbxiwtcffboqiwu.php
https://lustful.su/g/p35/p35afufmyotldovznr.php
https://sluts.su/g/p52/p52qwhpvnxfzpduwza.php
https://lustful.su/g/p89/p89kwtlguhweixegit.php
https://smutty.su/g/p99/p99qkbnpnoydofxxhk.php
https://smutty.su/g/p70/p70nzkpivbprewqnix.php

Write Comment
Return to News
  Displaying 626 through 632 of 632
Prev | First
  The time now is 3:44:18 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *