Tuesday 26 January 2021

Namespace and Main Method in C# PROGRAMMING | Clcoding

What is Namespace ?

A namespace is used to organize your code and is collection of classes, interfaces, structs, enums and delegates.

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: 

Syntax:

namespace name_of_namespace {

// Namespace (Nested Namespaces)
// Classes
// Interfaces
// Structures
// Delegates

}

Note : 

  • If you don't want to use namespace you can use fully qualified name (FQN).
  • Two classes with the same name can be created inside 2 different namespaces in a single program.
  • Inside a namespace, no two classes can have the same name.
  • In C#, the full name of the class starts from its namespace name followed by dot(.) operator and the class name, which is termed as the fully qualified name of the class.

Example :

 // defining the namespace name1
namespace name1
{

    // C1 is the class in the namespace name1
    class C1
    {
         // class code
    }
}

What is main Method ? 

Main method is the entry point into your application. 


What is CLR (Common Language Runtime) in DotNET (.Net) Framework | Clcoding

The CLR (Common Language RunTime) :

  • Is the foundation of the .NET Framework.
  • Acts as an execution engine for the .NET Framework.
  • Manages the execution of programs and provides a suitable environment for programs to run.
  • Provides a multi-language execution environment.

The following figure shows a more detailed look at the working of the CLR:

 

Just in time (JIT) compiler converts MSIL to native code, which is CPU specific code.

When a code is executed for the first time;

⟶ The CIL ( COMMON INTERMEDIATE LANGUAGE ) code is converted to a code native to the operating system.

⟶ This is done at runtime by the Just-In-Time (JIT) compiler present in the CLR.

⟶ The CLR converts the CIL code to the machine language code.

⟶ Once this is done, the code can be directly executed by the CPU.

Monday 11 January 2021

Introducing Flutter | What is Flutter ? | Flutter | Clcoding

Flutter is an open-source mobile application development framework created by Google. It is used to develop application for Android and iOS, as well as being the primary method of creating application for Google Fuchsia.

History 

The first version of Flutter was known as "Sky" and ran on the Android Operating system. It was unveiled at the 2015 Dart developer summit, with the started intent of being able to render consistently at 120 frames per second.

During the keynote of Google Developer Days in Shanghai, Google announced Flutter Release Preview 2 which is the last big release before Flutter 1.0. On December 4th 2018, Flutter 1.0 was released at the Flutter Live event, denoting the first "stable" version of the framework.

Flutter - Saving Files to Application Folder and Gallery | Flutter Tutorial  - YouTube

Framework Architecture :

The major components of Flutter include :

  • Dart platform
  • Flutter engine
  • Foundation Library 
  • Design-specific widgets

 Dart Platform :

Flutter apps are written in theDart language and make use of many of the language's more advanced features.

On Android, and on Windows macOS and Linux via the semi-official flutter Desktop Embedding project, Flutter runs in the Dart virtual machine features a just-in-time execution engine. Due to App Store restrictions on dynamic code execution, Flutter apps use ahead-of-time (AOT) compilation on iOS.

A notable feature of the Dart platform its support for "hot reload" where modifications to source files can be injected into a running application. Flutter extends this with support for stateful hot reload, where in most cases changes to source code can be reflected immediately in the running app without requiring a restart or any loss of state. This feature as implementation in flutter gas received widespread praise.

Flutter Engine :

Flutter's engine, written primarily in C++, provides low level rendering support using Google's Skia graphics library. Additionally. it interfaces with platform-specific SDKs such as those provided by Android and iOS. The Flutter Engine is a portable runtime for hosting Flutter applications. It implements Flutter's core libraries, including animation and graphics, file and network I/O, accessibility support, plugin architecture, and a Dart runtime and compile toolchain, Most developers will interact with Flutter via the Flutter Framework, which provides a modern, receive framework, and a rich set of platform, layout and foundation widgets.

Foundation Library :

The foundation library, written in Dart, provides basic classes and functions which are used to construct application using Flutter, such as APIs to communicate with the engine.

Design-specific widgets  :

The Flutter framework contains two sets of widget which conform to specific design languages. Material Design widgets implement Google's design language of the same name, and Cupertino widgets Imitate Apple's iOS design. .Flutter Tutorial - Creating Navigation Drawer in Flutter

Popular Posts

Categories

AI (27) Android (24) AngularJS (1) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (112) C (77) C# (12) C++ (82) Course (60) Coursera (176) coursewra (1) Cybersecurity (22) data management (11) Data Science (85) Data Strucures (6) Deep Learning (9) Django (6) Downloads (3) edx (2) Engineering (14) Excel (13) Factorial (1) Finance (5) flutter (1) FPL (17) Google (18) Hadoop (3) HTML&CSS (46) IBM (25) IoT (1) IS (25) Java (92) Leet Code (4) Machine Learning (43) Meta (18) MICHIGAN (4) microsoft (3) Pandas (3) PHP (20) Projects (29) Python (719) Python Coding Challenge (155) Questions (2) R (70) React (6) Scripting (1) security (3) Selenium Webdriver (2) Software (17) SQL (40) UX Research (1) web application (8)

Followers

Person climbing a staircase. Learn Data Science from Scratch: online program with 21 courses