Tag: How to

Sort Associative array with asort method in PHP

You can use the function asort if you want to sort an associative array in PHP. Sort Associative array with asort method in PHP Below is a sample code snippet demonstrating the usage of asort method to sort Associative array in PHP.

How to Combine a Filename with a Directory in C# ?

If you need to combine the filename with a directory name in C# , use the built in Path class to do it instead of doing it manually. How to Combine a Filename with a Directory in C# ? Below is a sample code snippet demonstrating how to use Path.Combine method in C#.

How to Check if the ArrayList is read-only in C# ?

There are times when you would use the read-only wrapper in order to prevent modifying the ArrayList. We use the ArrayList.ReadOnly method to create such collection. When doing so , you might want to check if the ArrayList is Read-only or not. How to Check if the ArrayList is read-only in C# ? Use the IsReadOnly property defined in the ArrayList object to check this.

How to Pass Method or Function as Parameter in C# ?

The C# 3.0 and higher version provides the option for the user to specify the function or method as parameter using the Func delegate . How to Pass Method or Function as Parameter in C# ? Below is a sample code snippet demonstrating how to pass method as parameter in C# using Func delegate.

C Program to find the G.C.D of a number using Recursive function

Problem Write a program in C to find the find the G.C.D of a number using recursion and display the result. How to find the G.C.D of a number using recursion in C ?   Output Abundantcode.com Coding samples        Enter the first number: 8          Enter the second number: 4      G.C.D of 8 and 4 is 4.

How to Create an Explicit Style in Windows Phone 8 ?

The developers can utilize the style resources to create styles and use them within the Windows Phone Application. For example , the developers can create a style for the textblock with a key identifier in the app.xaml file and then reuse them in different screens of the application. How to Create an Explicit Style in Windows Phone 8 ? To create an explicit style ,…

How to send SMS in Windows Phone 8 Programatically using C#?

In Windows Phone, the developers can send SMS from their Windows Phone 8 Programatically using the launchers. The Windows Phone SDK provides the SMSComposeTask launcher which can be used to send SMS in Windows Phone 8. Below is a code snippet demonstrating the usage of the SMSComposeTask to send SMS in Windows Phone 8. How to send SMS in Windows Phone 8 Programatically using C#?

Python Program to add two integers

Problem Write a program in Python to add two integers and display the result on the screen. Python Program to add two integers Output Enter first number: 1                                                                                                                                                         Enter second number: 2                                                                                                                                                                   1 + 2 = 3.0

How to Get the string from AppResources file in Windows Phone 8 ?

If you want to retrieve the value from the AppResources file in Windows Phone 8 , you can use one of the below options. How to Get the string from AppResources file in Windows Phone 8 ? 1. Using the AppResources.<Property> Assume that the string in the AppResources file is ApplicationTitle and the which contains the value “Abundantcode for Windows Phone development” . , you…