Hi,

Im facing an issue since some time now.

I have a static class with lets say 20 static methods. When using this
class in a form for instance i do something like:

MyBusinessLayer.MyStaticClass.Default.MethodA();
MyBusinessLayer.MyStaticClass.Default.MethodB();
MyBusinessLayer.MyStaticClass.Default.MethodC();
...
MyBusinessLayer.MyStaticClass.Default.Save();

Or anything... My Question is:
Is there a way to shorten this?

I mean like the using statement inline, but static classes have no
instances and they have no Dispose() implemention.
using (Font f1 = new Font())
{
....
}

Reply via email to