Tag: Namespace

Creating Namespace in WinJS for Windows Store App ?

When developing Windows Store App using WinJS library , there are times when you want to create a namespace . You can use the WinJS.Namespace.define() method to create a namespace. Below is a sample code snippet demonstrating how to create a namespace in WinJS for Windows Store App using WinJS. Creating Namespace in WinJS for Windows Store App ?

Fully Qualified Name in NameSpace

When accessing a class in C# , you use the fully qualifies Name of the class along with the NameSpace . The Fully Qualified Name indicates the logical hierarchy of the class . Below is the sample code that demonstrates the Fully Qualified Name namespace ConsoleApplication4 {     internal class Program     {         private static void Main(string[] args)         {             System.Console.WriteLine(“This is a…

Example for Multiple Levels of Namespace

using System; using System.Collections.Generic; using System.IO; using System.Linq; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace App2 {     namespace App1     {         namespace App3         {             class A             {             }         } } }

Keywords in XAML Language Namespace

Below are some of the keywords defined in the Xaml Language Namespace Keywords in XAML Language Namespace x:Arrayx:Codex:ConnectionIdx:Argumentsx:Staticx:AsyncRecordsx:Booleanx:Bytex:Charx:Decimalx:Doublex:Int16x:Int32x:Int64x:Singlex:Stringx:TimeSpanx:FactoryMethodx:ClassAttributesx:Classx:ClassModifierx:FieldModifierx:Keyx:Namex:Nullx:Uidx:Urix:Objectx:Propertyx:Referencex:Sharedx:Subclassx:SynchronousModex:Type

Namespace in C#

A Namespace in .NET is used to organize your code . The Namespace provides a better code readability and helps you understand how the code is arranged . They help you to organize large projects very well. The Namespace is also used to distinguish classes with same same . The Namespace can be nested into another namespace and is references with the keyword “using”. using…