IEnumerable<object> objects = ...;
foreach (IDisposable disposable in objects.OfType<IDisposable>())
{
disposable.Dispose();
}
(OfType<T>
is an extension method for IEnumerable<T>
in the System.Linq
namespace)
IEnumerable<object> objects = ...;
foreach (IDisposable disposable in objects.OfType<IDisposable>())
{
disposable.Dispose();
}
(OfType<T>
is an extension method for IEnumerable<T>
in the System.Linq
namespace)
That used to happen when the root folder of the website was '/' (rather than the default website name). Try changing the root folder (properties on web site project) and see if it works. If that's the problem, there was probably a hotfix or something for it (?)
Maybe I'm the only one who misunderstands quantum entanglement here, but how is this in anyway teleportation, or even communication? I thought that when two atoms where entangled, when you observe one, and then the other, you will both see the same thing. However, because you cannot influence the measured result, you cannot communicate. Furthermore, because you don't know when one has been measured, even if the collapse of the wave function happens instantaneously, a message using standard, slower than light communication would need to be transmitted. In other words, entanglement lets you see a random value, with the (amazing) catch that someone with the other particle will see the same random value, when they look.
But it only shows the tasks from files you have open, so if you want to view all the TODOs in your solution, you need to open every file, no?
I'm currently writing a (GW) BASIC-to-JavaScript compiler using Irony.NET (CodeProject article coming soon). I think Irony.NET is a brilliant project as it allows you to write an interpreter without really needing to do any scanner/parsing implementation, and just having everything in .NET code makes it seem so much more convenient than using, say, LEX or something. It's a little scant on documentation though.