Re: Replace a framework class



To my knowledge, no. And it doesn't seem like a good idea, anyway, to hijack
a class like this. As a matter of principle, other developers should have
the choice of which class they wish to use. As a matter of policy, if your
company is requiring everyone to use the new DataSet class, that's something
that will have to be enforced by other means.

--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Fish Grid .NET Light: Powerful Layouts for Small Datasets


"e-mre" <EmreT@xxxxxxxxxxxxxxxx> wrote in message
news:3D5A9A9E-5765-4B73-AB84-CB15053AEE2A@xxxxxxxxxxxxxxxx
Is is possible to replace a framework class for my application?

Let's say that I want to add a new property to the System.Data.Dataset
class. I can do that by extending the class. But I also want my new class
to replace the default System.Data.Dataset class in the framework.
Whenever System.Data.Dataset is referenced in my application, the
reference should point the my extended DataSet class. Other classes and
procedures that are already using System.Data.Dataset class should now
start using my class.

Java guys say that they can do this by copying the source code of the
required class into the project, making the changes on the source and
compiling it into the application package. Is this possible for dotNET?

e-mre


.



Relevant Pages

  • Third Party Assembly - Strong Naming - URGENT!!!!
    ... Now my project is complaining that b.dll is ... I have to have the source code and project to do this correctly? ... I was thinking I needed the source for the project so I can reference ... Also does it matter with version of the strong name tool I use? ...
    (microsoft.public.dotnet.framework)
  • Re: recursion theorem from sipser book ...
    ... so it seems like it's just a matter of storing the source code and ... being able to reference it. ... The problem with this concept is that the source code is longer than the ...
    (comp.theory)
  • Re: Dorian is back??
    ... It hardly matters who I am, just as it really does not matter who you ... use the Reference assets to pay off their old debts, ... If the buck stops with Skilling and Lay, then the buck stops with Dory ... "harmful intent" (via civil lawsuits) will never be adequately settled ...
    (rec.music.classical.recordings)
  • Re: case-sensitivity
    ... Then case in the source code need not ... >> matter, or you could choose to have it matter if that's what you want. ... elif word matches a single name, ... What one would choose would be dependant on how well they know python ...
    (comp.lang.python)
  • Re: Q: Java source and directory structure - standard way ?
    ... > As a matter of fact, ... They visit each source code directory and run "javac *.java" ... compiler to dispense with the directories altogether and build their ... > code based on the package hierarchy; ...
    (comp.lang.java)