adspace
A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?
Answer Posted / Nitesh Kumar Verma
To allow both clients to use either the updated or original DLL without affecting each other, you can implement a versioning strategy using namespaces and assembly versions. Here's an example for C#:nn```csharpn// Original namespace and assembly versionn[assembly: AssemblyVersion("1.0.0.0")]
namespace OriginalNamespace {n // Your original code heren}nn// Updated namespace and assembly versionn[assembly: AssemblyVersion("2.0.0.0")]
namespace UpdatedNamespace {n // Your updated code heren}nn// In your application, import the desired namespace based on client requirements:nusing OriginalNamespace; // For original functionalitynusing UpdatedNamespace; // For updated functionality
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers