Iqra Technology

C# Numeric Data Type

❮ Previous Next ❯ Numeric Datatype Method and Properties: Parse: Converts a string to an int string rollNoString = “123”; int rollNo = int.Parse(rollNoString); // rollNo is 123 Parse: Converts a string to a float. string weightString = “55.5”; float weight = float.Parse(weightString); // weight is 55.5f Parse: Converts a string to a double. string

C# Numeric Data Type Read More »

C# Data Types

❮ Previous Next ❯ Data Types in C# In C#, a data type specifies what kind of data a variable can hold. Data types are important because they define the size and layout of the variable’s memory, the range of values that can be stored, and the set of operations that can be applied to

C# Data Types Read More »

C# Identifiers

❮ Previous Next ❯ C# Identifiers In C# programming, identifiers are unique names used to identify variables, methods, classes, and other items in your code. Think of them as labels that help you keep track of different elements in your program. Rules for Naming Identifiers Start with a letter or an underscore: Identifiers must begin

C# Identifiers Read More »

C# Variables

❮ Previous Next ❯ Variables Introduction to Variables in C#: Variables in C# are containers for storing data values. They have a type that defines what kind of data they can hold and a name that identifies them within a program. C# is a statically typed language, meaning that you must declare the data type

C# Variables Read More »