Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles on Trending Technologies
Technical articles with clear explanations and examples
What are the main parts of a C# program?
The main parts of a C# program includes −Namespace declarationA classClass methodsClass attributesA Main methodStatements and ExpressionsCommentsThe following is an example showing how to create a C# program −Exampleusing System; namespace Demo { class Program { static void Main(string[] args) { Console.WriteLine("Our first program in C#!"); Console.ReadKey(); } } }OutputOur first program in C#!Here are the parts of the C# program we saw above −using System; - the using keyword is used to include the System namespace in the program. A program generally ...
Read MoreSorting a String in C#
Firstly, set a string array.string[] values = { "tim", "amit", "tom", "jack", "saurav"};Use the Sort() method to sort.Array.Sort(values);Let us see the complete code −Exampleusing System; public class Program { public static void Main() { string[] values = { "tim", "amit", "tom", "jack", "saurav"}; foreach (string value in values) { Console.Write(value); Console.Write(' '); } // sorting Array.Sort(values); Console.WriteLine("Sorted..."); foreach (string value in values) { Console.Write(value); Console.Write(' '); } Console.WriteLine(); } }Outputtim amit tom jack saurav Sorted... amit jack saurav tim tom
Read MoreSet disabled state for Bootstrap Buttons
To set disabled state, use the disabled class.You can try to run the following code for the disabled state of a button −Example Bootstrap Example The following are some buttons: Default Button Disabled Button
Read MoreCreate a bordered list group in Bootstrap
Use the .list-group class in Bootstrap to create a bordered list group.You can try to run the following code to implement .list-group class −Example Bootstrap Example Countries US India Netherlands Germany
Read MoreAlign single rows of items from the start in Bootstrap 4
Use the .align-items-start in Bootstrap 4 to align single rows of items from the start.Set the align-items-start class −Add the flex items − Product 1 Product 2 Product 3 Implementing align-items-start class to align single rows of items −Example Bootstrap Example Align Flex Items on a single row Product 1 Product 2 Product 3 Product 4
Read MoreCreate a striped Bootstrap progress bar
Follow the below given steps to create a striped progress bar in Bootstrap −Add a with a class of .progress and .progress-striped.Next, inside the above , add an empty with a class of .progress-bar and class progress-bar-* where * could be success, info, warning, danger.Add a style attribute with the width expressed as a percentage. Say, for example, style = "60%"; indicates that the progress bar was at 60%.You can try to run the following code to form a striped progress bar −Example Bootstrap Example Striped Progress Bars Warning Progress Bar 45%Complete (warning) Danger Progress Bar 80% Complete (danger)
Read MoreWhat is compile time polymorphism in C#?
Polymorphism can be static or dynamic. In static polymorphism, the response to a function is determined at the compile time. In dynamic polymorphism, it is decided at run-time.The linking of a function with an object during compile time is called early binding. It is also called static binding. C# provides two techniques to implement static polymorphism. They are Function overloading and Operator overloading.In function overloading you can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument ...
Read MoreBootstrap btn-group class
Use the class .btn-group to create a button group.You can try to run the following code to implement the btn-group class −Example Bootstrap Example The following are the buttons: One Two
Read MoreCreate a list group heading in Bootstrap
To create a list group heading, use the .list-group-item-heading class in Bootstrap.You can try to run the following code to implement .list-group-item-heading class −Example Bootstrap Example Countries Asia India Nepal Europe Germany Italy Spain
Read MoreSet light grey outlined Bootstrap 4 Button
To set an outline on a button that is of light grey color, you need to use the btn-outline-light class in Bootstrap.Use the class as − Sample You can try to run the following code to implement the btn-outline-light class −Example Bootstrap Example Demo Button A light colored button is visible below: Sample
Read More