Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #18868

Re: Architettura interna di ADO.Net

X-Received by 10.66.159.193 with SMTP id xe1mr5134423pab.1.1475919035916; Sat, 08 Oct 2016 02:30:35 -0700 (PDT)
X-Received by 10.36.20.10 with SMTP id 10mr144003itg.2.1475919035881; Sat, 08 Oct 2016 02:30:35 -0700 (PDT)
Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!o19no1154235ito.0!news-out.google.com!203ni3458itk.0!nntp.google.com!o19no1154229ito.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups it.comp.lang.visual-basic
Date Sat, 8 Oct 2016 02:30:34 -0700 (PDT)
In-Reply-To <36bb6758-a960-4e83-b01f-27a300509df0@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=93.44.85.193; posting-account=4c3DWgoAAADQcJJevo-GlQ6CVmV90H2x
NNTP-Posting-Host 93.44.85.193
References <6df688b1-a619-48d9-ae14-75771252eeec@googlegroups.com> <b6ee2fc6-7c4c-43fd-a314-b55e5a718161@googlegroups.com> <526a5606-aa26-4ee0-89d0-60be9fa9f9f1@googlegroups.com> <36bb6758-a960-4e83-b01f-27a300509df0@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <56f9402a-4127-4fdd-bd32-0d58906ca7c7@googlegroups.com> (permalink)
Subject Re: Architettura interna di ADO.Net
From Antologiko <antologiko@gmail.com>
Injection-Date Sat, 08 Oct 2016 09:30:35 +0000
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Xref csiph.com it.comp.lang.visual-basic:18868

Show key headers only | View raw


Era proprio il passaggio che mi mancava. Grazie mille, mi hai fatto fare un passo avanti. :-)

Adesso entro in modalità filosofico/rompiscatole, ma puoi benissimo non rispondere.

Non sarebbe stato possibile per i creatori del linguaggio, consentire che l'override di un metodo potesse restituire tipi derivati già nella firma?

Nel caso precedente, ad esempio, sarebbe bastato scrivere

'Classe base
Public Overridable Function CreateCommand() As BaseCommand
    Return New BaseCommand()
End Function

'Classe derivata
Public Overrides Function CreateCommand() As DerivedCommand
    Return New DerivedCommand()
End Function

Ovviamente, non è che il problema sia quello di scrivere qualche riga in più. Più che altro è per capire le motivazioni di fondo.

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Architettura interna di ADO.Net Antologiko <antologiko@gmail.com> - 2016-10-06 17:55 -0700
  Re: Architettura interna di ADO.Net Luca D <antaniserse@yahoo.it> - 2016-10-07 05:17 -0700
    Re: Architettura interna di ADO.Net Antologiko <antologiko@gmail.com> - 2016-10-07 14:29 -0700
      Re: Architettura interna di ADO.Net Luca D <antaniserse@yahoo.it> - 2016-10-07 15:11 -0700
        Re: Architettura interna di ADO.Net Antologiko <antologiko@gmail.com> - 2016-10-08 02:30 -0700
          Re: Architettura interna di ADO.Net Luca D <antaniserse@yahoo.it> - 2016-10-09 01:18 -0700
            Re: Architettura interna di ADO.Net Antologiko <antologiko@gmail.com> - 2016-10-09 15:44 -0700

csiph-web