How to rename a C # namespace to an existing API without breaking user code?

Can I rename a namespace name in an existing API without breaking user code?

+5
source share
4 answers

No, It is Immpossible. It is best to rename the namespace in one file: http://msdn.microsoft.com/en-us/library/sf0df423(VS.80).aspx

+5
source

Can I rename a namespace? name in existing API without breaking user code?

If you change the namespace in which the object resides, it will break the code that references it.

+5
source

, ( -), - -.

, , / .

, , API , . , , / - .

, , / .

+3

If you have access to the calling API code, you can use an alias to refer to the new namespace.

Thus, from the point of view of the API addresser, no changes have occurred.

0
source

All Articles