What is the C # 'using' statement?
What is the use of the C # using statement?
namespace Microsoft.Owin.Host.SystemWeb.DataProtection {
using DataProtectionProviderDelegate = Func<string[], Tuple<Func<byte[], byte[]>, Func<byte[], byte[]>>>;
using DataProtectionTuple = Tuple<Func<byte[], byte[]>, Func<byte[], byte[]>>;
According to MSDN, the use of the operator has two use cases.
- (directive) Types of imports into current files either directly or by providing an alias
- (statement) Make sure the IDisposable objects are positioned correctly.
But in this case, it used to assign a delegate type. Can anyone explain this usage and provide a link to the documentation?
+3
source to share