Can using be used to type alias an array?

I'm not sure I've worded this properly since this is a bit of an odd situation. Basically I've found some code like this: template<class T> struct X { typedef T Type; }; template<class T> struct X<const T[]> { typedef T Type[]; } ...
more »

2017-03-25 07:03 (1) Answers

GC.KeepAlive to preserve a context

I have a class which is is a simple wrapper for WNetUseConnection Here is an implementation (just for reference): internal class RemoteFileSystemContext : IDisposable { private readonly string _remoteUnc; private bool _isConnected; publ...
more »

2016-07-26 15:07 (2) Answers