Is it advisable to implement both LocationManager.NETWORK_PROVIDER and LocationManager.GPS_PROVIDER with the differenct listener and then unregister the listeners locationManager.removeUpdates(locatio
In short I\'m trying to write an AbstractMap implementation and I encountered a syntax problem that I do not understand.
I will use LINQ-to-SQL when the database is ready and use the entities there as models in my aplication. I\'m trying to program against a interface to make changes to the program easier and I just rea
I created a class which implements IDisposable interface and VisualStudio IDE brought the Dispose method for me. I am wondering what code i should write inside the Dispose method so that it will take
I have this problem: In C# I\'m making a program that should connect to various databases (SQLite, SQL Server Compact, MS Access, etc). I set in app.config a parameter called \"dbType\" (it could be
I heard and read a lot about singleton implementation approaches in C++, like Meyer, Phoenix, etc., but all of them seemed to have a problem in certain usage scenarios. So I came up with my own implem
I am looking for a weak reference implementation similar to java.lang.ref.WeakReference, but which offers a set() method or some other way of re-reference the created weak reference object. Here is th
I have the following code using generics: Set membersKeySet = membersList.keySet(); Iterator<DoubleKey> membersItr = membersKeySet.iterator();
I am using Ruby on Rails 3 and I would know in which case is good to use Modules. I have a controller including a lot of private methods that I use in this way:
Does C# offer something default to store application / any sort of settings? I could use Dictionary<K, T>, but actually I would prefer some structure, which natively supports xml export / impor