About 246,000 results
Open links in new tab
  1. C# Namespaces [With Examples] - Programiz

    Using a Namespace in C# [The using Keyword] A namespace can be included in a program using the using keyword. The syntax is, using Namespace-Name; For example, using System; The …

  2. The namespace keyword - C# reference | Microsoft Learn

    The namespace keyword is used to declare a scope that contains a set of related objects. You can use a namespace to organize code elements and to create globally unique types.

  3. Adding new Namespace in C# Project - Stack Overflow

    May 4, 2016 · The namespace keyword is used to declare a scope that contains a set of related objects. You can use a namespace to organize code elements and to create globally unique …

  4. Can someone explain the difference between the 'namespace' and 'using

    May 10, 2019 · Although it is not compulsory to put class in a namespace. The namespace - statement declares a namespace of your own; A set of "bundled classes" if you like. You can …

  5. Organizing types in namespaces - C# | Microsoft Learn

    Dec 4, 2024 · Second, declaring your own namespaces can help you control the scope of class and method names in larger programming projects. Use the namespace keyword to declare a …

  6. c# - How to include multiple classes in one project with one namespace

    Jan 2, 2017 · I am new in C# that's why I am struggling with basic concepts. I have created multiple classes in one project under one namespace out which one class is having Main() and …

  7. C# | Namespaces - GeeksforGeeks

    Feb 1, 2019 · To define a namespace in C#, we will use the namespace keyword followed by the name of the namespace and curly braces containing the body of the namespace as follows: …

  8. Working with Namespaces in C# - C# Corner

    With the help of the keyword using, it is possible to create an alias name for a namespace or type. For example. The following are some of the standard namespaces in .NET framework. …

  9. C# Namespaces - C# Tutorial

    Summary: in this tutorial, you’ll learn about C# namespaces and how to use namespaces to organize code. C# namespaces allow you to group related classes, interfaces, structs, enums, …

  10. Namespace And Nested Namespace In C# - C# Corner

    Namespace is used in C# programming in two ways:1) .Net Framework uses namespaces to use its various classes. This can be achieved by using "using" keyword.2) Declaring our own …