Re: I really hate .NET especially inside Delphi



Rick Beerendonk wrote:
will that not have to change with partial classes ?
Both parts of a partial class will have to be in the same namespace, as
you might imagine, yes.

I've read http://www.drbob42.com/examines/examin82.htm

It is confusing to see that if you use the namespace, you get the whole partial class, but if you use one of it units, you get only a part of the partial class. That is perfectly logical, but it also shows how confusing it is to have two almost (!) identical solutions (units & namespaces) for a single problem in the same product.


You *cannot* "use" a namespace in Delphi.Net from a Delphi.Net compiled assembly. Which is one of my points why I consider units in D.Net a poor trade-off compared to namespaces in the usual way .Net languages implement it.
You *have* to use units.
.



Relevant Pages

  • Re: Not able to put class into namespace
    ... asp.net uses partial the partial class model to combine the codebenind file and the class file generated by the page compile. ... if the namspace of the page (which defines the control names) is different then the namespace in codebehind, then you need to fully qualify the control names as they are in a differnt namespace. ... You could also make the namespace of the page match the codebehind namespace via the ClassName in the directive. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: I really hate .NET especially inside Delphi
    ... Both parts of a partial class will have to be in the same namespace, ... you might imagine, yes. ... It is confusing to see that if you use the namespace, ...
    (borland.public.delphi.non-technical)
  • Master Page properties
    ... Control.ascx.vb (user Control) ... Namespace TEST ... Partial Class Master ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Partial Classes across different namespaces ?
    ... public partial class X ... private void MyMethod ... namespace a.b.c.d ...
    (microsoft.public.dotnet.languages.csharp)
  • Compilation Error
    ... namespace System.Data ... partial class Console ... public partial class DataGrid ...
    (microsoft.public.dotnet.languages.csharp)