disposal

Disposal Order in C# Using Blocks

I'm really bothered by having to nest using blocks in C#. It's not elegant and it takes up a lot of space. In some cases it appears to be unavoidable because I need to declare variables of different data types, but it seems like the single-type case should be possible to simplify. What I mean by "the single-type case" is when several var...

A scheduling question

I have the following situation: I have a few hundred resources at my disposal (PCs/mobiles/smart devices). I would like to make a networked lab out of these where users can request access to some or all of these devices starting at a particular time. I'm writing a scheduler for this purpose. At the requested time, I wish to inform the us...

Can I safely clean up after a readonly object field?

Let's say I have a class with a object field. When Dispose() is called I would like to clear the reference to that object. The private field can only be set once, so ideally I would like it to be readonly, but if it is readonly there is a compile time error when I try to release the reference to the object during Dispose(). Ideally I wou...