What is serialization in C#?

Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.

What is cryptography in C#?

 The System.Security.Cryptography namespace provides cryptographic services, including secure encoding and decoding of data, as well as many other operations, such as hashing, random number generation, and message authentication.

What are different types of thread priority levels?

  There are five types of thread priority levels.Default priority level is 2: 

  1. 0 - Zero level
  2. 1 - Below Normal
  3. 2 - Normal

How to delete duplicate records in MSSQL Server?

 Here I have assumed that table name is Cars and Carid is primary key.

 

DELETE FROM CARS WHERE carId NOT IN (select MAX(carId)AS carId from Cars group by Model)

What are WCF Service Endpoints?

 WCF endpoint provides information to the clients about the service to communicate with.It has three basic elements i.e. Address, Binding and Contract.

                      i. Address: It defines "WHERE". Address is the URL that identifies the location of the service.
                      ii. Binding: It defines "HOW". Binding defines how the

Why we use properties in C#?

Properties areused to read, write and compute the values of private fields.Properties can be used as though they are public data members, but they are actually special methods called accessors. This enables data 

Can a Foreign key have NULL values?

Yes, foreign key can have multiple NULL values.

Can a Unique key have NULL values?

Yes, unique key can accept only one NULL value.

Can a Primary key have NULL values?

No, Primary keys cannot be null.

Can a foreign key reference non-primary key?

 Yes foreign key can reference non-primary key if it is a unique key.


About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice