Total Page Preview:   000000000316

What is data type conversion in C-Sharp in English and Hindi

 

Data type conversion in C-Sharp in English:

Data type conversion in C# is the process of converting a value from one data type to another. For example, converting an integer to a string or a string to a floating-point number.

Here's an example of data type conversion in C#:

 
In the above example, we have shown how to convert a string to an integer using Convert.ToInt32 method, an integer to a string using ToString method, a string to a floating-point number using float.Parse method, and a floating-point number to a string using ToString method.
 
 
Data type conversion in C-Sharp in Hindi:
Data type conversion C# mai ek aisa process hota hai jisme hum ek data type ke value ko dusre data type me convert karte hai. For example, ek integer ko string me convert karna ya string ko floating-point number me convert karna.
 
Yaha ek example diya gaya hai C# mai data type conversion ka:
 
Upar ke example me humne dikhaya hai ki kaise hum Convert.ToInt32 method ka use karke ek string ko integer me, ToString method ka use karke integer ko string me, float.Parse method ka use karke string ko floating-point number me aur ToString method ka use karke floating-point number ko string me convert kar sakte hai.

 

 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments


                           
                           

                           

                           

Facebook User: