Articles on Trending Technologies

Technical articles with clear explanations and examples

What are the main parts of a C# program?

Samual Sam
Samual Sam
Updated on 11-Mar-2026 2K+ Views

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 More

Sorting a String in C#

Samual Sam
Samual Sam
Updated on 11-Mar-2026 7K+ Views

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 More

Set disabled state for Bootstrap Buttons

George John
George John
Updated on 11-Mar-2026 303 Views

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 More

Create a bordered list group in Bootstrap

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 192 Views

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 More

Align single rows of items from the start in Bootstrap 4

Alex Onsman
Alex Onsman
Updated on 11-Mar-2026 196 Views

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 More

Create a striped Bootstrap progress bar

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 645 Views

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 More

What is compile time polymorphism in C#?

Samual Sam
Samual Sam
Updated on 11-Mar-2026 2K+ Views

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 More

Bootstrap btn-group class

Rishi Rathor
Rishi Rathor
Updated on 11-Mar-2026 240 Views

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 More

Create a list group heading in Bootstrap

Vrundesha Joshi
Vrundesha Joshi
Updated on 11-Mar-2026 3K+ Views

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 More

Set light grey outlined Bootstrap 4 Button

Amit Diwan
Amit Diwan
Updated on 11-Mar-2026 342 Views

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
Showing 9761–9770 of 61,248 articles
« Prev 1 975 976 977 978 979 6125 Next »
Advertisements