Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Static method in the public class
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01639234
Message ID:
01639242
Views:
56
>>UPDATE. Apparently I would have to create another static method and will have to pass operator's rights to it. Then I would need to check all calls to the original method and somehow adjust.
>
>Why do you use a static method?
> An instance of the class is obviously being instantiated anyway so I see no real benefit?

I am not sure. That code had been written long time ago when the project started (I joined the project after it was underway). Why there is a static method and it's used - it is hard for me to decide now.

Anyway, I made the necessary additions and fixes with the minimum intrusion (I think), but I found lots of other problems most likely unrelated to these changes :( I am going to discuss them today at our daily meeting, I hope someone else will be assigned to figure them out...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform