static method

  • Thread starter Thread starter Gunawan
  • Start date Start date
G

Gunawan

Hi there,
Is that any known issue if I had created many class that have many static
methods?
Regards,
Gun
 
Gunawan said:
Hi there,
Is that any known issue if I had created many class that have many
static methods?

What makes you wonder?

AFIAK, the answer is no.

-cd
 
I know there is a relation with the static method and the static
constructor, if I remeber it correctly, when you execute a static method of
a particular class for the first time it will execute the static constructor
too, where if you have loaded with many operation in the constructor it tend
to be little slow.. is this correct???

Nirosh.
 
I know there is a relation with the static method and the static
constructor, if I remeber it correctly, when you execute a static method of
a particular class for the first time it will execute the static constructor
too, where if you have loaded with many operation in the constructor it tend
to be little slow.. is this correct???

That's not particularly related to static methods. When you do almost
anything with a class which has a static constructor in, it will call
the static constructor the first time. Usually that will be calling a
static method or creating an instance.

Jon
 
oh! yes..

Jon Skeet said:
That's not particularly related to static methods. When you do almost
anything with a class which has a static constructor in, it will call
the static constructor the first time. Usually that will be calling a
static method or creating an instance.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top