I have found some source code on the net and I am not able to understand this usage of using statement outside the class definition:
namespace Artfunkel
{
using DataErrorsChangedEventManager = WeakEventManager<INotifyDataErrorInfo, DataErrorsChangedEventArgs>;
public class DataErrorsControl : Control
{
private readonly Dictionary<string, CollectionContainer> _errorLookup;
...
}
}
Is it possible to declare variables outside the class definition? There is no var keyword.
This source code is from https://gist.github.com/Artfunkel/868e6a88e37bd9769cd8beb04fd9837f