C# Namespace with real life example - GTech eAcademy
Watch Full Explanation of C# Namespace on our YouTube channel https://www.youtube.com/watch?v=d3Np2_-Jc14 Discussion points 1) What is namespace in C#? 2) Basic syntax of namespace 3) Understand namespace with examples 4) Naming convention 5) Purpose of using statement 6) Interview Questions What is namespace in c#? Formal Definition A namespace is designed to keep one set of names separate from another. The class names declared in one namespace does not conflict with the same class names declared in another. Informal Definition 1) Collection of classes & interfaces 2) Allow reuse of same class name in different contexts 3) Helps in resolving same class name conflicts Basic syntax of namespace Namesapce: Basic syntax Naming Convention 1) Try to give name as a folder hierarchy 2) Separate namespace components with periods E.g. Microsoft.Office.PowerPoint 3) Use PascalCasing 4) DO NOT use underscores, hyphens or any other nonalphanumeric characters 5)...