<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sabrina</title>
    <description>The latest articles on DEV Community by Sabrina (@sabrina_abcdna123).</description>
    <link>https://dev.to/sabrina_abcdna123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1886174%2Fc513b62d-77c5-4899-8317-889a73173d62.png</url>
      <title>DEV Community: Sabrina</title>
      <link>https://dev.to/sabrina_abcdna123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sabrina_abcdna123"/>
    <language>en</language>
    <item>
      <title>String operations</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Wed, 16 Oct 2024 13:11:02 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/string-operations-2ehm</link>
      <guid>https://dev.to/sabrina_abcdna123/string-operations-2ehm</guid>
      <description>&lt;p&gt;a)Quyidagi kod nima qiladi?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string name = "John";
string upperName = name.ToUpper();
Console.WriteLine(upperName);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;﻿﻿﻿b)Stringlarni birlashtirishning bir usulini keltiring.&lt;br&gt;
Javob : &lt;br&gt;
﻿﻿﻿c)Stringlarni solishtirish uchun qaysi metod ishlatiladi?&lt;br&gt;
Javob : Compare&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Array</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Wed, 16 Oct 2024 12:37:36 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/array-2ma8</link>
      <guid>https://dev.to/sabrina_abcdna123/array-2ma8</guid>
      <description>&lt;p&gt;a)Array nima?&lt;br&gt;
Javob : array bu bir necha hil qiymatlardan tashkil topgan malum bir ketma ketlikda joylashgan obyekt.&lt;/p&gt;

&lt;p&gt;b)Quyidagi kodning natijasini ayting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int[] numbers = { 1, 2, 3, 4, 5 };
Console. WriteLine (numbers [2]);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Javob : 3,chunki index 0 dan boshlanadi&lt;/p&gt;

</description>
    </item>
    <item>
      <title>OOP</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 15:36:27 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/oop-2cnf</link>
      <guid>https://dev.to/sabrina_abcdna123/oop-2cnf</guid>
      <description>&lt;p&gt;&lt;strong&gt;a)Encapsulation - "Inkapsulyatsiya" so'zi lotincha "in capsula" - qobiqda joylashtirish so'zidan olingan. Shundan kelib chiqib inkapsulatsiyani izolyatsiyalash, atrof muhit ta'siridan himoya qilgan holda yopish, himoyalash, biror bir buyum, narsani qolib, kapsulaga solib qo'yish deb tushunish mumkin.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;b)Multiple Inheritance bir yoki bir nechta classlardan meros olish degan ma’noda qo’llaniladi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;c) Polimorfizm odatda inkapsulyatsiya va vorislikdan keyin OOP ning uchinchi ustuni deyiladi. Polimorfizm yunoncha so’z bo’lib, “ko’p shaklli” degan ma’noni anglatad&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Class Constructor</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 15:20:52 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/class-constructor-2kf7</link>
      <guid>https://dev.to/sabrina_abcdna123/class-constructor-2kf7</guid>
      <description>&lt;p&gt;a) Constructor nima?&lt;br&gt;
Javob : Konstruktor – bu sinfdan obyekt yaratilganda avtomatik ravishda chaqiriladigan maxsus usuldir. U obyektning dastlabki qiymatlarini o'rnatish uchun ishlatiladi. Konstruktor sinf nomi bilan bir xil bo'ladi va u hech qanday qaytarish tipiga ega bo‘lmaydi.&lt;/p&gt;

&lt;p&gt;b)Quyidagi kodni to'ldiring :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Animal
{
   public string Name;
   public Animal(string name)
   {
      Name = name;
   }
}
Animal dog = new Animal("Dog");
Console.WriteLine(dog.Name);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Loops(for while,do while)</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 15:16:54 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/loopsfor-whiledo-while-nf3</link>
      <guid>https://dev.to/sabrina_abcdna123/loopsfor-whiledo-while-nf3</guid>
      <description>&lt;h2&gt;
  
  
  a) for loopning sintaksisi qanday?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for(int variable = qiymati, variable = boshqa variable yoki son; increment or decrement;)
{

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;b)while loop va do while o'rtasidagi farq nima?&lt;br&gt;
Javob : do whileda bitta bo'sayam chiqarib beradi,whileda esa xatto bo'lsa hech nima chiqarmidi&lt;/p&gt;

&lt;p&gt;c)Quiyidagi kodning natijasini toping :&lt;br&gt;
int i = 0;&lt;br&gt;
while(i &amp;lt; 5)&lt;br&gt;
{&lt;br&gt;
   Console.WriteLine(i);&lt;br&gt;
   I++;&lt;br&gt;
}&lt;br&gt;
Xatto chunki incrementda I katta harfda yozilgan.Whileni ichida esa i kichkina&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Operators(if, else if, else, ternary operator, switch)</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 15:00:38 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/operatorsif-else-if-else-ternary-operator-switch-5719</link>
      <guid>https://dev.to/sabrina_abcdna123/operatorsif-else-if-else-ternary-operator-switch-5719</guid>
      <description>&lt;p&gt;a) Quyidagi kodda if, else if, else qismi qanday ishlaydi?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int x = 10;
if (x &amp;lt; 5) 
{
    Console.WriteLine("Less than 5");
} 
else if (x == 10) 
{
    Console.WriteLine("Equal to 10");
} 
else 
{
    Console.WriteLine("Greater than 5");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Javob : Agar x qiymati 5dan kam bo'lsa "Less than 5" degan gapni chiqaradi.Agar x qiymati 10ga teng bo'lsa "Equal to 10" degan gapni chiqaradi.Boshqa holatda esa "Greater than 5" chiqaradi&lt;/p&gt;

&lt;p&gt;b) Ternary operatorning sintaksisi qanday ? &lt;br&gt;
shart ? ifTrue : ifFalse&lt;/p&gt;

&lt;p&gt;c)Quyidagi kodda &lt;em&gt;switch&lt;/em&gt; qismida qaysi natija chiqadi?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int day = 3;
 switch (day) 
 {
     case 1:
         Console.WriteLine("Monday");
         break;
     case 2:
         Console.WriteLine("Tuesday");
         break;
     case 3:
         Console.WriteLine("Wednesday");
         break;
     break;

    default:
         Console.WriteLine("Invalid day");
    break;
 }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Value Type va Reference Type</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 14:53:39 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/value-type-va-reference-type-3fe2</link>
      <guid>https://dev.to/sabrina_abcdna123/value-type-va-reference-type-3fe2</guid>
      <description>&lt;p&gt;a) Value Type va Reference Type nima?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Value Types (Qiymat turlari)&lt;/em&gt;&lt;br&gt;
&lt;em&gt;2. Reference Types (Havola turlari)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;b) Quyidagi kodni natijasi : 5&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 5;
int b = a;
b = 10;
Console.WriteLine(a);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Namespace</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 14:35:25 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/namespace-12p9</link>
      <guid>https://dev.to/sabrina_abcdna123/namespace-12p9</guid>
      <description>&lt;h2&gt;
  
  
  a) Namespace nima?
&lt;/h2&gt;

&lt;p&gt;Javob : Bu dasturdagi sinflar mantiqiy guruhlash uchun foydalaniladigan tushuncha.&lt;/p&gt;

&lt;h2&gt;
  
  
  b) Namespace qanday ishlatiladi?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Namespace ishlatish sintaksisi:
           namespace NamespaceNomi
           {
                // Sinflar, interfeyslar, strukturalar va 
                boshqa elementlar
           }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  c) Quyidagi kodni tahlil qiling:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   using System;
   namespace Myname
   {
         class Program
         {
              static void Main(string[] args)
              {
                  Console.WriteLine("Hello World!");
              }
         }
   }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Javob : System kutubxonasini use qilamz,undan keyin namespace yaratiladi.undan keyin console.writeLine() orqali "hello world" degan gapni chiqaramiz.&lt;/p&gt;

</description>
      <category>namespace</category>
      <category>malades</category>
    </item>
    <item>
      <title>Data types</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 14:28:59 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/data-types-j4i</link>
      <guid>https://dev.to/sabrina_abcdna123/data-types-j4i</guid>
      <description>&lt;h2&gt;
  
  
  a) Quyidagi o'zgaruvchilarni qiymat turlariga ajrating: int,float,string,bool.
&lt;/h2&gt;

&lt;p&gt;int - 4 bayt : -2,147,483,648 dan 2,147,483,647 gacha&lt;br&gt;
float - 4 bayt : ±1.5 x 10^−45 dan ±3.4 x 10^38 gacha&lt;br&gt;
string - Belgilar qatori matnlarni saqlash uchun&lt;br&gt;
bool -  (1 bayt) Mantiqiy qiymatlar (true yoki false).&lt;/p&gt;

&lt;h2&gt;
  
  
  b) float va double orasidagi farq nima?
&lt;/h2&gt;

&lt;p&gt;float = 4 bayt&lt;br&gt;
double esa 8 bayt&lt;/p&gt;

</description>
      <category>malades</category>
      <category>feraxalades</category>
      <category>sunnnatmalades</category>
    </item>
    <item>
      <title>Class Object</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 11 Oct 2024 14:11:41 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/class-object-4h93</link>
      <guid>https://dev.to/sabrina_abcdna123/class-object-4h93</guid>
      <description>&lt;h2&gt;
  
  
  a) C# da class nima?
&lt;/h2&gt;

&lt;p&gt;Javob : Class - ma'lumotlar to'plami,ya'niy methods,properties.Class object uchun shablondir.&lt;/p&gt;

&lt;h2&gt;
  
  
  b) Object nima?
&lt;/h2&gt;

&lt;p&gt;JaVob : Object - Classdan yaratilgan konkret nusxadir.&lt;/p&gt;

&lt;h2&gt;
  
  
  c)Quyidagi kodni natijasi : Tesla
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Car
{
    public string Model;
    public Car(string model)
    {
        Model = model;
    }

}
class Program
{
    static void Main()
    {
Car myCar = new Car("Tesla");
Console.WriteLine(myCar.Model);
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>String methods</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Fri, 23 Aug 2024 17:39:42 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/string-methods-jd3</link>
      <guid>https://dev.to/sabrina_abcdna123/string-methods-jd3</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Substring() -&amp;gt; returns substring into substring&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Console.WriteLine(longstring.Substring(5));
Console.WriteLine(longstring.Substring(5,10));
Console.WriteLine(longstring.Substring(5,10,100));//Error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Error : xatto bo'ladi,sababi - hajmidan oshib ketdi.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Replace() -&amp;gt; replace the specified old character with specified&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var longString = "This guy is strongman";
Console.WriteLine(longstring.Replace("is","IS"));
Console.WriteLine(longstring.Replace("very","VERY"));
Console.WriteLine(longstring.Replace("iS","IS", StringComparison.CurrentCultureIgnoreCase));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Join() -&amp;gt; joins the given string using the specified separator;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string [] words = {"apple","banana","cherry"};
string result = string.Join("-",words);
Console.WriteLine(result);

string [] words2 = {"book","pen","notebook"};
string result2 = string.Join("|",words2);
Console.WriteLine(result2);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Remove() -&amp;gt; returns characters from a string &lt;br&gt;
 Berilgan tekstdan ochiradi&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string tekst = "Hello world";
string tekst1 = tekst.Remove(1,5);
Console.WriteLine(tekst1);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;PadLeft() -&amp;gt; returns a string padded with spaces or with specified Unicode character&lt;br&gt;
PadLeft() -&amp;gt; tekstni chap tomonidan nechtadur joy ajratib beradi&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string tekst = "Hello world";
string tekst1 = tekst.PadLeft(10,'0');
string tekst2 = tekst.PadLeft(10);
Console.WriteLine(tekst1);
Console.WriteLine(tekst2);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;PadRight() -&amp;gt; returns a string padded with spaces or with specified Unicode character&lt;br&gt;
PadRight() -&amp;gt; tekstni ong tomonidan nechtadur joy ajratib beradi&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string tekst3 = "Hello world";
string tekst4 = tekst.PadLeft(10,'0');
string tekst5 = tekst.PadLeft(10);
Console.WriteLine(tekst4);
Console.WriteLine(tekst5);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;ToCharArray -&amp;gt; converts to string to a char array&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string tekst = "Hello";
char [] charArray = tekst.ToCharArray();
foreach(char c in charArray)
{
    Console.WriteLine(c);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;LastIndexOf() - returns index of the last occurance of specified string&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string tekst2 = "Hello world";
int index = tekst2.LastIndexOf("o");
int index2 = tekst2.IndexOf("o");
Console.WriteLine(index);
Console.WriteLine(index2);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Stack and Heap</title>
      <dc:creator>Sabrina</dc:creator>
      <pubDate>Tue, 20 Aug 2024 09:48:04 +0000</pubDate>
      <link>https://dev.to/sabrina_abcdna123/stack-and-heap-577d</link>
      <guid>https://dev.to/sabrina_abcdna123/stack-and-heap-577d</guid>
      <description>&lt;p&gt;is string literal mutable or immutable ?&lt;br&gt;&lt;br&gt;
   is string variable mutable or immutable ?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;string literal - deb " " ichida constanta sifatida yozilgan stringga aytiladi.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;string literal immutable - degani bu qiymatni o'zgaritirib bo' lmaydi.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var name = "Ismalali Ustoz";
name = "islamali ustoz";
var son = 15;
son = 16;
Console. WriteLine (name);
Console. WriteLine(son);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;&lt;strong&gt;Value typelar&lt;/strong&gt;&lt;/em&gt; - stackda saqlanadi&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Value type **_deganda, ma' lumotlar tog'ridan- to'g'ri o'zgaruvchida saqlanadi. Bunda o'zgaruvchining qiymati o'zi bilan birga saqlanadi.&lt;br&gt;
_&lt;/strong&gt;Value typelar**&lt;/em&gt; stack xotirasida saqlanadi.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Value typega&lt;/strong&gt;&lt;/em&gt; quydagilar kiradi:&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Oddiy turlar&lt;/strong&gt;&lt;/em&gt; - int, float, double, char,bool va h.k;&lt;br&gt;
struct, enum;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 5;
int b = a;
b = 10;
Console.WriteLine(a);
Console-WriteLine(b);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;&lt;strong&gt;Reference typelar&lt;/strong&gt;&lt;/em&gt; - heapda sagalanadi&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Reference type deganda&lt;/strong&gt;&lt;/em&gt;, o' zgaruvchi faqatgina ob'ektning manzilini (reference) saqlaydi, ob'ektning o'zi esa heap (xotiradi) saqlanadi.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Reference typega&lt;/strong&gt;&lt;/em&gt; quydagilar kiradi - class, interface, array(massivlar), delegate.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Stack xotira&lt;/strong&gt;&lt;/em&gt;: Bu juda tez va kichik xotira bo'lib, u qiymatlarni to'g'ridan-to'g'ri o' zgaruvchida saqlaydi.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Value type&lt;/strong&gt;&lt;/em&gt; o' zgaruvchilari stackda saqlanadi.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Stackda saqlangan&lt;/strong&gt;&lt;/em&gt; qlymatlar to'g'ridan-to'g'ri foydalaniladi va o'chiriladi, shuning uchun stack xotira juda samarali.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Heap xotira&lt;/strong&gt;&lt;/em&gt;: Bu katta hajmdagi va nisbatan sekinrog xotira bo'lib, unda ma' lumotlar dinamik ravishda yaratiladi va boshgariladi.&lt;br&gt;
 &lt;em&gt;&lt;strong&gt;Reference type&lt;/strong&gt;&lt;/em&gt; o' zgaruvchilari heapda saqlanadi. Heapda ma' lumotlar ko'proq joyni talab qiladi, va ular stackdan farqli o'laroq, murakkabroq boshgariladi (masalan, garbage collection orgali).&lt;/p&gt;

&lt;p&gt;string concatenation =&amp;gt; stringlarni bir biriga qo'shish&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var greeting = "Hello" + " " + name + " ";
Console. WriteLine(greeting);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Agar space holder ichida o' zgaruvchidan keyin, 10 soni yoziladigan bo'lsa bizga consoledan 10 ta joy ajratib beradi.&lt;br&gt;
Agar -10 yoziladigan bo' lsa chap tarfdan rostlab chop etadi.&lt;br&gt;
var butunSon = 2;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Console. WriteLine($"Kiritilgan butunSon: {butunSon,
10: D4}");
Console. WriteLine($"Kiritilgan butunSon: {butunSon, -10:D4}");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string
firstFriend = "Sunnat";
string
secondFriend
= "Firdavs";
Console WriteLine($"The name (firstFriend) and {secondFriend}");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;//Length - function tekstni uzinligini aniqlab beradi, o'zgaruvchidan keyin Length shaklida yoziladi.&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Console WriteLine($"The name {firstFriend} has {firstFriend.Length) letters");
Console.WriteLine($"The name {secondFriend} has {secondFriend.Length} letters");
var carModel = "BYD Song L";
Console-WriteLine("String = (0}, Length = {1}", carModel, carModel.Length);
for int
1 = 0; 1 &amp;lt; carModel. Length; i++)
Console.WriteLine(carModel [i]) ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;//String metodlari&lt;br&gt;
//TrimStart() - function tekstni oldidagi joylarni olib tashlaydi.&lt;br&gt;
// TrimEnd() - function tekstni oxiridagi joylarni olib tashlaydi&lt;br&gt;
//Trim() - fucntion oldi va oxiridagi joylarni tengdaniga olib tashlaydi.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string greeting2 = "
Hello
Console. WriteLine(greeting2);
string
trimmedGreeting = greeting2. TrimStart();
Console. WriteLine (trimmedGreeting) ;
trimmedGreeting = greeting2.TrimEnd();
Console.WriteLine(trimmedGreeting) ;
trimmedGreeting = greeting2. Trim();
Console. WriteLine(trimmedGreeting);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;//Replace() →&amp;gt; function tekst qiymatini o'rniga yangi qiymatga o'zgartirrish imkoniyatini beradi.&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string sayHello= "Hello World";
Console.WriteLine(sayHello) ;
sayHello = sayHello.Replace("Hello", "Greetings");
Console.WriteLine(sayHello);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;//ToUpper () -&amp;gt; function xamma harflarni kotta qilib beradi.&lt;br&gt;
//ToLower () -&amp;gt; fucntion xamma harflarni kichik qilib beradi.&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Console.WriteLine(sayHello. ToUpper());
Console.WriteLine(sayHello. ToLower());
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;//Escape character &amp;amp;&amp;amp; verbatim string&lt;br&gt;
// escape character maxsus belgilarni chop etishda backslashda foydalanishimiz kerak - 1&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var specialString = "U judayam \"zor\" bola";
Console. WriteLine(specialString);
Console-WriteLine("olma\nanor \nnok");
Console. WriteLine("olma\ tanor\tnok");
Console-WriteLine("olma \banor");
Console-WriteLine("olma\ \anor\ \nok");
Console.WriteLine("C: \ \Windows\ \System32\\calc.exe");
Console-WriteLine(@"C: \Windows\System32\calc.exe");
Console-WriteLine("C: \Windows\nSystem32\ncalc.exe");
Console-WriteLine(@"C: \nWindows\nSystem32\ncalc-exe");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;//Contains() - checks whether the string contains a substring&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string songLyrics = "You say goodbye, and I say hello";
Console. WriteLine (songLyrics.Contains ("goodbye") );
Console. WriteLine(songLyrics.Contains ("say"));
Console-WriteLine (songLyrics.Contains ("greetings")):
//StartWith() - checks if the string begins with the given string
Console. WriteLine (songLyrics.StartsWith ("You"));
Console WriteLine(songLyrics-StartsWith ("goodbye")) ;
//EndWith() → checks if the string ends with the given string
Console-WriteLine(songLyrics.EndsWith("hello"));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>csharp</category>
    </item>
  </channel>
</rss>
