Tooling and Project Concepts
Namespace Layout
Build a namespace and type name from a project feature area.
Namespace Layout
NamespaceLayout.cs
using System;
class Program
{
static void Main()
{
string feature = ;
string rootNamespace = "Storefront";
string namespaceName = rootNamespace + "." + feature;
string typeName = feature + "Service";
Console.WriteLine($"namespace={namespaceName}");
Console.WriteLine($"type={typeName}");
}
}
using System;
class Program
{
static void Main()
{
string feature = ;
string rootNamespace = "Storefront";
string namespaceName = rootNamespace + "." + feature;
string typeName = feature + "Service";
Console.WriteLine($"namespace={namespaceName}");
Console.WriteLine($"type={typeName}");
}
}
using System;
class Program
{
static void Main()
{
string feature = ;
string rootNamespace = "Storefront";
string namespaceName = rootNamespace + "." + feature;
string typeName = feature + "Service";
Console.WriteLine($"namespace={namespaceName}");
Console.WriteLine($"type={typeName}");
}
}
tooling
Namespaces make related classes easier to locate by grouping them under a project and feature name.