🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #21990

Re: WPF - tworzenie w XAML czy w kodzie, co wygodniejsze?

#21990
From: Marcin Kral
Date: Tue, 15 Feb 2011 13:23
27 lines
2038 bytes
W dniu 2011-02-15 12:27, Łukasz 'Maly' Ostrowski pisze:
> On Tue, 15 Feb 2011 12:02:40 +0100, Maciej Pilichowski wrote:
>> Odnosnie DRY -- gdzie jest u licha typedef? To jest idiotycznie prosta
>> konstrukcja, ale dzieki niej programista moze napisac
>>
>> var x = new FileCounter();
>>
>> a nie ciagle:
>>
>> var x = new Dictionary<string,int>();
>
> Duh,
>
> public class FileCounter : Dictionary<string, int>
> {
> }
>
> I sobie można nawet interfejs rozszerzyć o własne pomoce.

W tym przypadku za bardziej koszerne uwazam:
using FileCounter = Dictionary<string, int>;
    ...
var x = new FileCounter();

-- 
Pozdrawiam
Marcin Kral
Technical Details
Message-ID: <ijdur1$db3$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <1411e969-5db0-44a5-80ab-eb7e3e439138@c39g2000yqi.googlegroups.com> <ih6k62$j39$1@inews.gazeta.pl> <dtifj6hm7ehrhqohiof58hs9n6k0hqonpu@4ax.com> <8e1de6bc-b3fa-401e-afe4-5dd874217c4e@v7g2000yqh.googlegroups.com> <204kl6te7qitni1tgegpovdmqs0ore9a2j@4ax.com> <e648ffc1-e203-4770-b1a9-7376e57fc0c7@s11g2000yqh.googlegroups.com> <41nkl658m9qai2p4s0on8h4ekcnhhfi6bm@4ax.com> <1e94u0l78j3eo.1se305ybk2bwm.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Marcin Kral <kralu@poczta.na.onecie>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: WPF - tworzenie w XAML czy w kodzie, co wygodniejsze?
Date: Tue, 15 Feb 2011 14:23:38 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 27
Message-ID: <ijdur1$db3$1@inews.gazeta.pl>
References: <1411e969-5db0-44a5-80ab-eb7e3e439138@c39g2000yqi.googlegroups.com> <ih6k62$j39$1@inews.gazeta.pl> <dtifj6hm7ehrhqohiof58hs9n6k0hqonpu@4ax.com> <8e1de6bc-b3fa-401e-afe4-5dd874217c4e@v7g2000yqh.googlegroups.com> <204kl6te7qitni1tgegpovdmqs0ore9a2j@4ax.com> <e648ffc1-e203-4770-b1a9-7376e57fc0c7@s11g2000yqh.googlegroups.com> <41nkl658m9qai2p4s0on8h4ekcnhhfi6bm@4ax.com> <1e94u0l78j3eo.1se305ybk2bwm.dlg@40tude.net>
NNTP-Posting-Host: 195.205.169.102
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1297776289 13667 195.205.169.102 (15 Feb 2011 13:24:49 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 15 Feb 2011 13:24:49 +0000 (UTC)
X-User: leisure27
X-Antivirus: avast! (VPS 110214-0, 2011-02-14), Outbound message
In-Reply-To: <1e94u0l78j3eo.1se305ybk2bwm.dlg@40tude.net>
X-Antivirus-Status: Clean
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit