Chandu yadav has Published 1091 Articles

Transform the element along with x-axis and y-axis with CSS

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 14:44:07

2K+ Views

Use the translate(x, y) method to transform the element along with x-axis and y-axis.Let us see the syntaxtranslate(x, y)Here, x is a length representing the x-coordinate of the translating vector.y is a length representing the ordinate of the translating vectorLet us see an examplediv {    width: 50px;    height: ... Read More

What is garbage collection in C#?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 14:40:47

9K+ Views

The garbage collector (GC) manages the allocation and release of memory. The garbage collector serves as an automatic memory manager.You do not need to know how to allocate and release memory or manage the lifetime of the objects that use that memory.An allocation is made any time you declare an ... Read More

In MySQL, how can I combine two or more strings along with a separator?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 13:50:36

159 Views

In MySQL, we can combine two or more strings along with a separator by using CONCAT_WS() function. The syntax of this function is CONCAT_WS(Separator, String1, String2, …, StringN)Here, the arguments of CONCAT_WS functions are Separator and the strings which need to be concatenated along with that separator as a single ... Read More

Break the line and wrap onto next line with CSS

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 13:47:20

796 Views

Use the word-wrap property to break the line and wrap onto next line. You can try to run the following code to implement a word-wrap property in CSSExampleLive Demo                    div {             width: 200px; ... Read More

What does Array.IsFixedSize property of array class do in C# ?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 13:23:53

284 Views

The IsFixedSize property of ArrayList class is used to get a value indicating whether the ArrayList has a fixed size.The following is an example stating the usage of isFixedSize property −Example Live Demousing System; using System.Collections; class Demo {    public static void Main() {       ArrayList arrList ... Read More

What are user defined data types in C#?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 13:16:48

3K+ Views

The User defined data types in C# are structures and enumeration.StructureIn C#, a structure is a value type data type. It helps you to make a single variable hold related data of various data types. The struct keyword is used for creating a structure.The C# structures have the following features ... Read More

What does the @ prefix do on string literals in C#?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 12:50:07

746 Views

The @prefix states hat you don't need to escape special characters in the string following to the symbol.The following statement@"D:ew"is equal to:"D:ew"The @ prefix is also used if you want to have large strings and want it to be displayed across multiple lines. The following is an example showing multi-line ... Read More

What are contextual keywords in C#?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 11:50:16

724 Views

In C#, some identifiers have special meaning in context of code, such as get and set are called contextual keywords.The following is the table showing contextual keywords −Contextual Keywordsaddaliasascendingdescendingdynamicfromgetglobalgroupintojoinletorderbypartial (type)partial(method)removeselectset

How to assign multiple values to same variable in C#?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 11:21:17

4K+ Views

To set multiple values to same variable, use arrays in C#. Let’s say instead of taking 5 variables, set these 5 variables using arrays in a single variable.The following is an example to set three values to a single variable with a string array −string[] arr = new string[3];Let us ... Read More

Why is the Main() method use in C# static?

Chandu yadav

Chandu yadav

Updated on 20-Jun-2020 11:17:28

3K+ Views

The Main method states what the class does when executed and instantiates other objects and variables.A main method is static since it is available to run when the C# program starts. It is the entry point of the program and runs without even creating an instance of the class.The following ... Read More

Advertisements