Home > C# > What is the difference between “using x.y;” and “using z = x.y;”

What is the difference between “using x.y;” and “using z = x.y;”

using x.y; is just referencing a namespace while using z = x.y; defines an alias.

Eg:
using Microsoft.DirectX;
using DirectX = Microsoft.DirectX;"

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)

No related posts.

Categories: C#