Home > Net >  Wrapper class, a static class way and what is the difference between static class
Wrapper class, a static class way and what is the difference between static class

Time:01-16

Fellow teachers, ask a question,
Because c # is a self-study, so some problems much don't know why, specially to consult everybody the teacher,
I want to encapsulate a class, a static class (public static) and non-static class (public void) in two ways,
Two ways can achieve my goal, such as add and remove check change to the database, as far as I'm concerned, I use the static way (public void) with very comfortable, very little in a static way,
But see online a lot of people in a static way, therefore, would like to know:
Static and non-static class what is the difference between on the function?
Which resources of speed or large?
Use static class returns a dataTable, the table is at the end of the reference will automatically release the memory, or to wait for the system automatically not recycling cleaning on a regular basis?
If I have been using the static class encapsulation, have what problem?
Thank you
  •  Tags:  
  • C#
  • Related