The class CancellationTokenSource is disposable. A quick look in Reflector proves usage of KernelEvent, a (very likely) unmanaged resource. Since CancellationTokenSource has no ...
I wish to say: public void Problem(Guid optional = Guid.Empty) { } But the compiler complains that Guid.Empty is not a compile time ...
-
June 1, 2022
- 0 Comments
C# 4.0 introduced a new type called ‘dynamic’. It all sounds good, but what would a programmer use it for? Is there a ...
-
May 20, 2022
- 0 Comments
Is there a way to use a Tuple class, but supply the names of the items in it? For example: public Tuple<int, int, ...
-
May 19, 2022
- 0 Comments
I would like to dynamically add properties to a ExpandoObject at runtime. So for example to add a string property call NewProp I ...
-
May 19, 2022
- 0 Comments