🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#21992
From: Marcin Kral
Date: Tue, 15 Feb 2011 15:36
17 lines
1966 bytes
W dniu 2011-02-15 15:33, Łukasz 'Maly' Ostrowski pisze:
> On Tue, 15 Feb 2011 14:23:38 +0100, Marcin Kral wrote:
>>
>> W tym przypadku za bardziej koszerne uwazam:
>> using FileCounter = Dictionary<string, int>;
>>      ...
>> var x = new FileCounter();
>
> Oczywiście, ale taki using  ma lokalny scope.

Za to działa dla klas sealed... i jest aliasem, a nie nowym bytem. 
Jakkolwiek, jesli potrzeba aliasa -> using; jesli wspolnego interfejsu 
-> interfejs/dziedziczenie.

-- 
Pozdrawiam
Marcin Kral
Technical Details
Message-ID: <ije6jl$c8a$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> <ijdur1$db3$1@inews.gazeta.pl> <hi7cngolbc64.1cr8zyx6xvou1.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 16:36:14 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 17
Message-ID: <ije6jl$c8a$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> <ijdur1$db3$1@inews.gazeta.pl> <hi7cngolbc64.1cr8zyx6xvou1.dlg@40tude.net>
NNTP-Posting-Host: 195.205.169.102
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1297784245 12554 195.205.169.102 (15 Feb 2011 15:37:25 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 15 Feb 2011 15:37:25 +0000 (UTC)
X-User: leisure27
X-Antivirus: avast! (VPS 110214-1, 2011-02-14), Outbound message
In-Reply-To: <hi7cngolbc64.1cr8zyx6xvou1.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