framework-design

Why are Array.Sort() and Array.IndexOf() methods static?

Always was interested why are Array.Sort() and Array.IndexOf() methods made static and similar ArrayList.Sort() and ArrayList.IndexOf() are designed as member methods. Thank you for any ideas. ...

Settable collection properties:

Framework Design Guidelines gives this advice: DO NOT provide settable collection properties. But if I don't, I can't see a way to XML serialize anything with a collection property. The XmlSerializer constructor complains, "Unable to generate a temporary class (result=1). error CS0200: Property or indexer 'ConsoleApplication1...

How should I implement session storage on node.js

I'm creating josi, a web framework for node.js. And I'd like to add session storage. What would be the best way to implement this? I'm assuming it probably has to be cookie based, but I'm interested in knowing if any other frameworks have a different approach. ...

ReSharper complains about uppercase "ID" in member "EntityID"

I have a property "EntityID" in a class. Resharper (5.1) says Name 'EntityID' does not match rule 'Methods, properties and events'. Suggested name is 'EntityId'. But IMHO according to the naming conventions in the Design Guidelines for Class Library Developers. 'EntityID' should be perfectly fine: Do not use acronyms th...

Ideas for good class name

How would you name a class with the following public interface: /// <summary> /// Enqeues and exectutes actions synchronously on seperated threads using the <see cref="ThreadPool"/>. /// </summary> /// <remarks> /// Syncronism is guaranteed on a per-instance base in that each enqued action will be executed /// after the pre...