0

I have a winforms application that calls an assembly that has a static class. This class is big with user ,system and other configuration options.

I'm starting to port the application to Web. I want to reference the assembly, but the class is static, so, all users will have the same values and that can't happen.

Is there a way around this (maintaining the original asembly)

0

2 Answers 2

4

No.

You will have to change the code.

Sign up to request clarification or add additional context in comments.

1 Comment

Tkx for the reply. I guess that's it.
0

A static class is usually a helper class. You can still use that class methods with a few changes..

Simply make the class public and change all static methods to public. This should be a quick change.

While static variabes can be used in Web App, they are not thread-safe.

If you want to share variables across different users, try using the Application object.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.