I got ONLY 1 Namespace and these 2 different codes :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;
namespace blabla
{
[...]
}
and
namespace blabla
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;
[...]
}
I don't see any difference at all here but it that really the case ? I mean about performance or whatever
there is no difference in terms of performance. Namespace is the way of code organization and scoping. So in your case, using states will be defined globally in first snippet and inside namespace for the second. In both cases, physical assemblies will be referenced equally in both cases.