How to Upload Full Existing Project in GitLab repository using gitlab bash exe from local System.

Right-click on file or folder which you want to commit and then perform all command in Git Bash (Download GitBash:https://git-scm.com/downloads) command screen given below.


C# Control statement - Continue

A Continue statement jumps out of the current loop condition and jumps back to the starting of the loop code.

Example 

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
  class Program
  {
    static void Main(string[] args)
    {
      int i;
      for (i = 0; i <= 20; i++)
      {
        if (i == 10)
          continue;
        if (i == 20)
          break;
        Console.WriteLine("value is" + i);
      }
      Console.ReadLine();
    }

  }
}




Output


goto Statement in c#

The goto statement transfers the program control directly to a labeled statement. A common use of goto is to transfer control to a specific switch-case label or the default label in a switch statement.


Example 


using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
  class SwitchTest
  {
    static void Main()
    {
      Console.WriteLine("Coffee sizes: 1=Small 2=Medium 3=Large");
      Console.Write("Please enter your selection: ");
      string s = Console.ReadLine();
      int n = int.Parse(s);
      int cost = 0;
      switch (n)
      {
        case 1:
          cost += 25;
          break;
        case 2:
          cost += 25;
          goto case 1;
        case 3:
          cost += 50;
          goto case 1;
        default:
          Console.WriteLine("Invalid selection.");
          break;
      }
      if (cost != 0)
      {
        Console.WriteLine("Please insert {0} cents.", cost);
      }
      Console.WriteLine("Thank you for your business.");

      // Keep the console open in debug mode.
      Console.WriteLine("Press any key to exit.");
      Console.ReadKey();
    }
  }



}



Output



Operators in c#

    An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations

    Type of operators:
    1.     Arithmetic Operators
    2.     Relational Operators
    3.     Bitwise Operators
    4.     Logical Operators
    5.     Unary Operators
    6.     Ternary Operator
    7.     Bitwise and Bit Shift Operators
    8.     Compound Assignment Operators  
       
    1-Arithmetic Operators       



                            

      2-Compound Assignment Operators







3-Bitwise Operators








    4 -Logical Operators





    5-Relational Operators





    6-Unary  Operators










    Reserved Keywords in c#

    Keywords are reserved words by the compiler that you can't use as an identifier in your C# program. If you want to use them then you can use it by prefixing with "@"


    List of Reserved Keywords in c#




    Stack in C#

    In Stack, Each element is added to the top. Each element we remove is removed from the top. This is a LIFO collection—the stack is last-in-first-out.


    Common Methods :



    Push. Usually, the first action you need to do on Stack is Push elements into it. The word Push is a computer science term that means "add to the top."

    Example :


    using System;

    using System.Collections;

    using System.Collections.Generic;

    using System.IO;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;



    namespace ConsoleApplication1

    {



      using System;

      using System.Collections;



      public class Program

      {

        public static void Main()

        {

          Stack myFirstStack = new Stack();



          myFirstStack.Push(1);

          myFirstStack.Push(2);

          myFirstStack.Push(3);

          myFirstStack.Push(4);

          myFirstStack.Push(5);

          myFirstStack.Push("Hello Nitin !!");

          myFirstStack.Push(null);

          foreach (var itm in myFirstStack)

            Console.WriteLine(itm);

          Console.Read();

        }

      }



    }


    output:
    ==========




    Example 2:   with multiple data types data ( string, int  and null values )



    using System;

    using System.Collections;

    using System.Collections.Generic;

    using System.IO;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;



    namespace ConsoleApplication1

    {



      using System;

      using System.Collections;



      public class Program

      {

        public static void Main()

        {

          Stack myFirstStack = new Stack();



          myFirstStack.Push(1);

          myFirstStack.Push(2);

          myFirstStack.Push(3);

          myFirstStack.Push(4);

          myFirstStack.Push(5);

          myFirstStack.Push("Hello Nitin !!");

          myFirstStack.Push(null);



          foreach (var itm in myFirstStack)

            Console.WriteLine(itm);

          Console.Read();

        }

      }



    }






    Output: