No announcements
Found 3262027 threads
-
1 Votes
What is difference between singleton and static class regarding usage in real life application
Especially with something like a log, what happens when a static class wants to log something?Answered | 6 Replies | 602 Views | Created by Sudip_inn - Friday, April 1, 2016 11:33 AM | Last reply by Stefan Hoffmann - Friday, April 1, 2016 6:06 PM -
1 Votes
Regarding Static class and Singleton classes real life usage
still things are not very clear for static and singleton class usage ?Answered | 5 Replies | 612 Views | Created by Mou_kolkata - Sunday, April 12, 2015 9:34 AM | Last reply by Fouad Roumieh - Tuesday, April 14, 2015 6:56 AM -
0 Votes
Static class vs singleton class
A singleton class has a private constructor.Answered | 3 Replies | 20343 Views | Created by Swapnil.Mandgaonkar - Saturday, May 1, 2010 12:55 PM | Last reply by - Friday, November 20, 2015 6:02 AM -
2 Votes
DIFFERENCE between a Singleton class vs.
One of the biggest differences that comes to mind is that you can use the singleton technique with forms.Answered | 4 Replies | 3127 Views | Created by PublicServant101 - Thursday, October 29, 2009 5:11 PM | Last reply by DeborahK - Thursday, October 29, 2009 11:28 PM -
0 Votes
why should i use static calss and what is difference between static class and singletone class ?
It's very confusing to tell the difference because of exactly what Michael said - it is possible to create a static class with static ...Answered | 8 Replies | 3413 Views | Created by aniruddha84 - Wednesday, June 1, 2011 6:56 PM | Last reply by aniruddha84 - Thursday, June 2, 2011 10:51 AM -
0 Votes
What is singleton and what its usage
Difference between static class and singleton pattern?Answered | 4 Replies | 722 Views | Created by Tridip - Sunday, March 1, 2020 6:50 PM | Last reply by Timon Yang - Tuesday, March 10, 2020 6:09 AM -
2 Votes
Static Class will create internally any object?
Additionally once a singleton is instantiated (if it is instantiated) it will live in a different section of memory than a static class (in the heap versus the ...Answered | 2 Replies | 1375 Views | Created by hnm.mng - Monday, November 14, 2011 12:29 PM | Last reply by servy42 - Monday, November 14, 2011 6:44 PM -
1 Votes
Static Class
what advantage/perfomance static methods gives over instance methods I would not think of static vs. instance methods in terms of performance - ...Answered | 2 Replies | 3288 Views | Created by nehakapoor - Wednesday, January 27, 2010 8:37 PM | Last reply by Reed Copsey, Jr - Wednesday, January 27, 2010 8:56 PM -
2 Votes
what could be design decisions to favor Singleton over Static Class or vice-versa??
For example, a singleton that sub-classes a singleton would permit both the base class and sub-class to be instantiated (and having two ...Answered | 10 Replies | 3633 Views | Created by Jagdish Sorot - Saturday, October 23, 2010 7:00 PM | Last reply by Eyal Solnik - Monday, October 25, 2010 11:53 AM -
0 Votes
Singleton instance of class on seperate processes
Hi, Nick has rightly stated that "getInstance" is a static method in the singleton class which returns the active instance of the ...Answered | 8 Replies | 8384 Views | Created by rumDeep - Wednesday, March 25, 2009 8:24 AM | Last reply by rumDeep - Wednesday, April 1, 2009 8:16 AM -
0 Votes
What is difference between DTO and POCO classes
I always use a DTO no matter what as it directly reflects the passing of data between layers, tiers or processes, a Data Transfer Object.Answered | 1 Replies | 1875 Views | Created by Mou_kolkata - Tuesday, January 12, 2016 9:31 AM | Last reply by DA924 - Tuesday, January 12, 2016 10:42 AM -
0 Votes
What is difference between singleton class and static class in terms of usage ?
Difference between Singleton and Static Class Another question that usually comes up when it comes to using a ...Answered | 8 Replies | 101 Views | Created by Anonymous - Wednesday, October 28, 2015 10:15 AM | Last reply by Anonymous - Thursday, October 29, 2015 12:27 PM -
0 Votes
Can the canonical Singleton pattern use a static nested class ok?
static has two effects: - it marks the class as abstract, preventing it from being instantiated; - it marks the class as sealed, ...Answered | 6 Replies | 4298 Views | Created by Matthew Watson - Monday, June 28, 2010 4:29 PM | Last reply by Figo Fei - Wednesday, July 7, 2010 5:10 AM -
0 Votes
Persisting singleton class behaviour of a Singleton class library
David David http://blogs.msdn.com/b/dbrowne/Answered | 4 Replies | 357 Views | Created by La07K - Friday, June 17, 2016 12:20 PM | Last reply by davidbaxterbrowne - Friday, June 17, 2016 12:56 PM -
2 Votes
When not to use a static class?
>What are the disadvantages?Answered | 5 Replies | 9248 Views | Created by OldEnthusiast - Sunday, September 25, 2016 11:19 AM | Last reply by Kevin Linq - Monday, September 26, 2016 10:28 AM -
9 Votes
Creating a singleton class for StreamWriter
// Singleton class.Answered | 15 Replies | 8654 Views | Created by Jura4936 - Monday, August 13, 2012 11:12 AM | Last reply by Phil N - Tuesday, August 14, 2012 8:45 PM -
4 Votes
Memory Allocation to Static Class
You must differentiate between static and instance data first.Answered | 11 Replies | 45601 Views | Created by Ajay Beni - Thursday, May 22, 2008 6:51 AM | Last reply by Simple Samples - Friday, June 12, 2015 6:38 AM -
0 Votes
Singleton code vs Static code
There is no big difference between a Singleton and a class with Static Methods, except inheritance and interfaces.Answered | 1 Replies | 1419 Views | Created by Ravi_P - Tuesday, June 25, 2013 5:11 PM | Last reply by FernandoRocha - Tuesday, June 25, 2013 5:45 PM -
0 Votes
Singleton with partial class and sealed partial class
Hi Descostes, According to your description, I am not able to find article and references about creating a singleton with VSTO addin, I think that ...Answered | 1 Replies | 1237 Views | Created by Descostes - Friday, September 23, 2016 3:34 PM | Last reply by David_JunFeng - Monday, September 26, 2016 8:06 AM -
0 Votes
static class
2) There is no difference.Answered | 1 Replies | 3326 Views | Created by Jalil Sabri - Wednesday, November 12, 2008 9:24 PM | Last reply by nobugz - Wednesday, November 12, 2008 9:43 PM - Items 1 to 20 of 3262027 Next ›
No announcements