Samual Sam has Published 2310 Articles

Abort in C#

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:52:56

698 Views

The Abort() method is used for destroying threads.The runtime aborts the thread by throwing a ThreadAbortException. This exception cannot be caught, the control is sent to the finally block if any.Use the Abort() method on a thread −childThread.Abort();Example Live Demousing System; using System.Threading; namespace MultithreadingApplication {    class ThreadCreationProgram { ... Read More

Geosynchronous and Geostationary Satellites

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:49:50

3K+ Views

Geosynchronous Satellite and Geosynchronous Orbit (GSO)A geosynchronous satellite is a communication satellite that has an orbital period same as the period of rotation of the earth. Hence, it appears to be permanently in the same area of the sky at a particular time each day when viewed by an observer ... Read More

What is the difference between objects and classes in C#?

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:42:42

294 Views

C# has object and classes like Java. Objects are real-world entities and instance of a class. Access the members of the class using an object.To access the class members, you need to use the dot (.) operator after the object name. The dot operator links the name of an object ... Read More

How can we overcome the property of CONCAT() function that it returns NULL if any one of the argument is NULL, especially when we want to concatenate the values from the column and any of the columns have NULL as its value?

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:39:12

351 Views

Problem Statement How can we overcome the property of CONCAT() function that it returns NULL if any one of the argument is NULL, especially when we want to concatenate the values from the column and any of the columns have NULL as ... Read More

The Object Class in C#

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:38:24

1K+ Views

The Object class is the base class of all the classes in C#. It has the following methods on C#.Sr.NoMethod & Description1Equals(Object)Determines whether the specified object is equal to the current object.2Equals(Object, Object, Determines whether the specified object instances are considered equal.3Finalize()Allows an object to try to free resources4GetHashCode()default hash ... Read More

What is the difference between dynamic type variables and object type variables?

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:36:03

2K+ Views

You can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at run-time.The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). The object is an alias for System. Object class. ... Read More

Increment and Decrement Operators in C#

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:34:05

7K+ Views

Increment operator increases integer value by one i.e.int a = 10; a++; ++a;Decrement operator decreases integer value by one i.e.int a = 20; a--; --a;The following is an example demonstrating increment operator −Example Live Demousing System; class Program {    static void Main() {       int a, b; ... Read More

What is the difference between Write() and WriteLine() methods in C#?

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:28:54

6K+ Views

The difference between Write() and WriteLine() method is based on new line character.Write() method displays the output but do not provide a new line character.WriteLine() method displays the output and also provides a new line character it the end of the string, This would set a new line for the ... Read More

Typeof() vs GetType() in C#

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:26:04

17K+ Views

Typeof()The type takes the Type and returns the Type of the argument.For example: System.Byte for the following −typeof(byte)The following is an example −Example Live Demousing System; class Program {    static void Main() {       Console.WriteLine(typeof(int));       Console.WriteLine(typeof(byte));    } }OutputSystem.Int32 System.ByteGetType()The GetType() method of array class ... Read More

Write a C# program to do basic arithmetic calculations

Samual Sam

Samual Sam

Updated on 22-Jun-2020 07:23:17

619 Views

Let us do the following arithmetic calculations −Sr.NoOperator & Description1+Adds two operands2-Subtracts second operand from the first3*Multiplies both operands4/Divides numerator by de-numeratorThe following is an example to perform arithmetic calculations using the above-given operators −Example Live Demousing System; namespace OperatorsApplication {    class Program {       static void ... Read More

Advertisements