The name of one of my classes has been changed, and I cannot change it. I have to maintain backward compatibility, and I don't want to write a wrapper with the old name. Is there an easy way to give class 2 names or give it an alias?
Raised from OP comment:
Do not tell me to use the using directive, as this should be done on the consumer side, and I do not want to change projects that use my library.
, - (, Resharper), . , , :
, Type Forwarder. ... IIRC, .
, .cs using:
using OldClassName = SomeNameSpace.NewClassName
, .cs , using.
:
public class OldClassName : NewClassName
, , - . ... .
, , - X Y, .
, IL.
Source: https://habr.com/ru/post/1789570/More articles:Should I put emails in the database before sending, and not on the fly? - performanceFix file in system.img for use with android - android emulatorPython fingerprint error: - pythonCreating "onload" functionality in dynamic HTML - jqueryGoogle App Engine and jQuery Ajax raises Broken Pipe error - jquerymysql - can I join multiple fields? - sqlWordpress 3.1 - TinyMCE inserts “non-standard” quotation marks - how to fix it? - quotesWhat version of the websockets protocol protocol does the Google Chrome app do - google-chromeadding jquery check dynamically - jqueryНапишите объект оболочки в Javascript - javascriptAll Articles