Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> C#

C#

  1. C# में Hashtable Class की Item Property क्या है?

    Specified Key से Associated Value को Gets या Sets करता है। नए Elements Add करने के लिए भी Item Property का उपयोग कर सकते हैं।यदि Key Exist नहीं करती, तो आप इसे ऐसे Include कर सकते हैं:myCollection[myNonexistentKey] = myValueनिम्न Code दर्शाता है कि C# में Hashtable Class की Item Property के साथ कैसे

  2. C# Regular Expression में Grouping Constructs समझाया गया

    Characters, Operators, और Constructs की विभिन्न Categories हैं जो आपको Regular Expressions Define करने देती हैं। उनमें से एक है Grouping Constructs। Grouping Constructs, Regular Expression के Sub-Expressions को Describe करते हैं और Input String के Substrings को Capture करते हैं। निम्न Table Grouping

  3. C# Program: Array में Maximum और Minimum Element Find करें

    Minimum और Maximum Element को First Element पर Set करें ताकि आप सभी Elements से Compare कर सकें।Maximum के लिए। max) {    max = arr[i]; }Minimum के लिए।if(arr[i] < min) {    min = arr[i]; }Array में Maximum और Minimum Elements की Position Find करने के लिए निम्न Code Run करें।Exam

  4. C# और .Net में अंतर

    C# एक Programming Language है और .NET एक Framework है। .NET में Common Language Runtime (CLR) होता है, जो .NET Framework का एक Virtual Component है। .NET में न केवल C#, बल्कि इसके माध्यम से आप VB, F# आदि के साथ काम कर सकते हैं। C# .NET का हिस्सा है और इसमें निम्न Features हैं: Boolean Conditions Au

  5. C# Program: Determine अगर String में सभी Unique Characters हैं

    C# में Substring() Method का उपयोग करके प्रत्येक Substring को Unique Characters के लिए Check करें। इसे String की Length तक Loop करें।यदि कोई Substring दूसरी से Match करता है, तो इसका मतलब होगा कि String में Unique Characters नहीं हैं।String में सभी Unique Characters हैं या नहीं Determine करने के लिए

  6. C# Program: Array को Descending Order में Sort करें

    Array Initialize करें।int[] myArr = new int[5] {98, 76, 99, 32, 77};Array में First Element को Next Element के साथ Compare करें Largest Element Find करने के लिए, फिर Second Largest, आदि।if(myArr[i] < myArr[j]) {    temp = myArr[i];    myArr[i] = myArr[j];    myArr[j] =

  7. C# में 'as' Operator का Purpose क्या है?

    as Operator Compatible Types के बीच Conversions Perform करता है। यह Cast Operation जैसा है और केवल Reference Conversions, Nullable Conversions, और Boxing Conversions Perform करता है। As Operator अन्य Conversions Perform नहीं कर सकता, जैसे User-Defined Conversions, जिन्हें Cast Expressions का उपयोग क

  8. C# में Class के Private Member Variable का Scope क्या है?

    केवल उसी Class के Functions इसके Private Members को Access कर सकते हैं। Private Access Specifier एक Class को अपने Member Variables और Member Functions को अन्य Functions और Objects से Hide करने की अनुमति देता है।Exampleusing System; namespace RectangleApplication {    class Rectangle { &nbs

  9. C# में Queue Class क्या है?

    C# में Objects के First-In First-Out Collection को Represent करने के लिए, Queue Class का उपयोग करें। जब आप List में Item Add करते हैं, तो इसे Enqueue कहते हैं, और जब आप Item Remove करते हैं, तो इसे Dequeue कहते हैं।Queue Class के कुछ Methods में शामिल हैं:Sr.NoMethod & Description1public virtual

  10. C# में Multi-Dimensional Arrays को Initialize कैसे करें?

    Multidimensional Array का Simplest Form 2-Dimensional Array है। 2-Dimensional Array, One-Dimensional Arrays की List होती है।Multidimensional Arrays को प्रत्येक Row के लिए Bracketed Values Specify करके Initialize किया जा सकता है।int[,] a = new int[3,4] {    {0, 1, 2, 3}, /* Row 0 के लिए Ini

  11. C# में Two-Dimensional Arrays को Initialize कैसे करें?

    2-Dimensional Array, One-Dimensional Arrays की List होती है।Two-Dimensional Arrays को प्रत्येक Row के लिए Bracketed Values Specify करके Initialize किया जा सकता है।int[,] a = new int[4,4] {    {0, 1, 2, 3},    {4, 5, 6, 7},    {8, 9, 10, 11},    {12, 13, 14, 15

  12. C# में Array को Ascending Order में Sort कैसे करें?

    सबसे पहले, Unsorted Array Set करें।int[] list = {98, 23, 97, 36, 77};Sort() Method का उपयोग करके Array Sort करें।Array.Sort(list);Array को Ascending Order में Sort करने के लिए निम्न Code Run कर सकते हैं।Exampleusing System; namespace Demo {    public class MyApplication {     &nb

  13. C# में GZIP Format का उपयोग करके Files Compress और Decompress करना

    GZIP Format का उपयोग करके Files Compress और Decompress करने के लिए, GZipStream Class का उपयोग करें।CompressFile Zip करने के लिए, FileStream Class के साथ GZipStream Class का उपयोग करें। निम्न Parameters Set करें:Zip की जाने वाली File और Output Zip File का Name।यहां, OutputFile Output File है और File

  14. C# में Method और Function में अंतर

    C# में Methods और Functions Same हैं।हालांकि, Methods C# में उपयोग किए जाते हैं और वे Functions होते हैं जो Designated Class के माध्यम से Operate करते हैं। एक Method, Statements का Group होता है जो मिलकर एक Task Perform करता है। हर C# Program में कम से कम एक Class होती है जिसमें Main नाम की Method ह

  15. C# में Array पर Iterate करने के लिए 'foreach' Loop का उपयोग कैसे करें?

    For Each Loop, For Loop के समान है; हालांकि, Loop Array या Group में प्रत्येक Element के लिए Execute होता है। इसलिए, Index Foreach Loop में Exist नहीं करता।आइए Bubble Sort का एक Example देखते हैं, जिसमें Elements Sort करने के बाद, हम Foreach Loop का उपयोग करके Elements Display करेंगे।foreach (int p

  16. C# में Dimensional Array क्या है?

    C# Multidimensional Arrays Allow करता है। Int के 2-Dimensional Array को ऐसे Declare करें:int[,] a;Multidimensional Array का Simplest Form 2-Dimensional Array है। 2-Dimensional Array, One-Dimensional Arrays की List होती है।निम्न Two-Dimensional Array 3 Rows और 4 Columns के साथ है।आइए अब C# में Multi-

  17. C# में Class के Protected Internal Member Variable का Scope क्या है?

    Protected Internal Access Specifier एक Class को अपने Member Variables और Member Functions को अन्य Class Objects और Functions से Hide करने की अनुमति देता है, सिवाय Same Application के भीतर एक Child Class के।नीचे दिए गए Example में, Derived Class Object Protected Internal Variable को Access कर सकता है

  18. C# में SortedList Class की Item Property क्या है?

    Sorted List, Array और Hash Table का Combination है। इसमें Items की List होती है जिन्हें Key या Index का उपयोग करके Access किया जा सकता है।SortedList में Specific Key से Associated Value को Gets और Sets करता है।नए Elements Add करने के लिए भी Item Property का उपयोग कर सकते हैं।यदि Key Exist नहीं करती,

  19. C# का उपयोग करके 2 Numbers के बीच Minimum कैसे Find करें?

    सबसे पहले, दो Numbers Declare और Initialize करें।int num1 = 35; int num2 = 55;उसके साथ, Minimum Number Find करने के लिए If-Else का उपयोग करें।if (num1 < num2) {    minNum = num1; } else {    minNum = num2; }ऊपर, हमने Minimum Value को Variable minNum में Set किया और बाद में Print

  20. C# और Visual C# में अंतर

    C# और Visual C# दोनों Same हैं। जब आप C# Development के लिए Visual Studio का उपयोग करते हैं, तो इसे Visual C# कहा जाता है। Visual C# को C# का Implementation Consider करें। Microsoft Visual Studio, Programs, Web Apps, Web Services आदि Develop करने के लिए Microsoft का एक IDE है। Visual Studio का Curre

Total 2668 -कंप्यूटर  FirstPage PreviousPage NextPage LastPage CurrentPage:71/134  20-कंप्यूटर/Page Goto:1 65 66 67 68 69 70 71 72 73 74 75 76 77