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

C#

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

    Protected Access Specifier एक Child Class को अपने Base Class के Member Variables और Member Functions को Access करने की अनुमति देता है। यह Inheritance Implement करने में Help करता है। हम इसे Inheritance Chapter में अधिक Details में Discuss करेंगे।निम्न Example दर्शाता है कि हमने Class A में एक Protec

  2. C# में Scope Resolution Operator क्या है?

    C# में Scope Resolution Operator का अर्थ C++ की तुलना में अलग है। C++ में :: Global Variables के लिए उपयोग किया जाता है, जबकि C# में यह Namespaces से Related है।यदि आपके पास एक Type है जो Different Namespaces में Identifier Share करता है, तो उन्हें Identify करने के लिए Scope Resolution Operator का उ

  3. C# में Hashtable Class क्या है?

    Hashtable Class, Key-and-Value Pairs के Collection को Represent करती है जो Key के Hash Code के आधार पर Organized होते हैं। यह Collection में Elements Access करने के लिए Key का उपयोग करती है।Hashtable Class में आमतौर पर उपयोग होने वाले कुछ Methods हैं:Sr.No.Method & Description1public virtual voi

  4. C# में ArrayList Class की IsFixedSize Property क्या है?

    ArrayList Class की IsFixedSize Property का उपयोग यह Value Get करने के लिए किया जाता है जो Indicate करती है कि ArrayList का Fixed Size है या नहीं।निम्न Example IsFixedSize Property के उपयोग को दर्शाता है।Exampleusing System; using System.Collections; class Demo {    public static void Main(

  5. C# Program: Check Whether a List is Empty or Not

    C# में Elements Store और Fetch करने के लिए Lists का उपयोग करें। आइए एक Example देखते हैं।Exampleusing System; using System.Collections.Generic; public class Demo {    public static void Main(string[] args) {       var subjects = new List();       subjects.Add(

  6. C# में ArrayList Class की IsReadOnly Property क्या है?

    ArrayList Class की IsReadOnly Property यह Value Get करने के लिए Useful है जो Indicate करती है कि ArrayList Read-Only है या नहीं।सबसे पहले, हमारे पास निम्न ArrayList है।ArrayList arrList = new ArrayList();फिर हमने IsReadOnly Property का उपयोग करके Check किया है।Console.WriteLine(myArrayList.IsReadOnl

  7. C# में BitArray Class की Length Property क्या है?

    Length Property का उपयोग BitArray में Elements की संख्या Get या Set करने के लिए किया जाता है।हमारा BitArray:BitArray arr = new BitArray(5);Length Calculate करने के लिए, Length Property का उपयोग करें।Console.WriteLine(Length: {0}, arr.Length);BitArray Class की Length Property के साथ काम करना सीखने के

  8. C# Regular Expression में Substitution समझाया गया

    Regular Expression एक Pattern है जिसे Input Text के विरुद्ध Match किया जा सकता है। Characters, Operators, और Constructs की विभिन्न Categories हैं जो आपको Regular Expressions Define करने देती हैं। Substitutions का उपयोग Replacement Patterns में किया जाता है। निम्न Table Substitutions को List करती है।

  9. C# में Strings को Initialize और Compare कैसे करें?

    C# में String Initialize करना आसान है। मान लीजिए आप Name Amit Set करना चाहते हैं, तो अपने String को ऐसे Initialize करें।String str1 = Hello, World!;Strings Compare करने के लिए, निम्न C# Method का उपयोग करें।public static int Compare(string str1, string str2)Compare करने के लिए, यदि:String.Compare(st

  10. C# में Array को Initialize कैसे करें?

    सभी Arrays Contiguous Memory Locations से Consist होते हैं। Lowest Address First Element से Correspond करता है और Highest Address Last Element से। सबसे पहले, एक Array Declare करें। int[] rank; लेकिन Array Declare करने से Memory में Array Initialize नहीं होता। जब Array Variable Initialize होता है,

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

    सबसे पहले, दो Numbers Declare और Initialize करें।int num1 = 50; int num2 = 90;उसके साथ, Maximum Number Find करने के लिए If-Else का उपयोग करें। num2) {    maxNum = num1; } else {    maxNum = num2; }ऊपर, हमने Maximum Value को Variable maxNum में Set किया और बाद में Print किया।निम्न

  12. C# में String Object कैसे Create करें?

    C# में String Object Create करने के लिए, नीचे दिए गए किसी भी Method का उपयोग करें।String Literal को String Variable में Assign करकेString Class Constructor का उपयोग करकेString Concatenation Operator (+) का उपयोग करकेProperty Retrieve करके या Method Call करके जो String Return करता हैFormatting Method

  13. C# में String और Int Items के साथ Tuple कैसे Create करें?

    सबसे पहले, Tuple में दो Items Set करें।Tuple tuple = new Tuple(20, Tom);अब Tuple में First Item Check करें, जो Integer है।if (tuple.Item1 == 20) {    Console.WriteLine(tuple.Item1); }अब Tuple में Second Item Check करें, जो String है:if (tuple.Item2 == Tom) {    Console.WriteLine(

  14. C# में Thread कैसे Create करें?

    Threads Lightweight Processes होते हैं। एक Thread को Program के Execution Path के रूप में Define किया जाता है। Threads, Thread Class को Extend करके Create की जाती हैं। Extended Thread Class फिर Child Thread Execution शुरू करने के लिए Start() Method को Call करती है।Thread का Example: Thread के उपयोग

  15. C# में Arrays को Dynamically कैसे Create करें?

    Dynamic Arrays, Growable Arrays होते हैं और Static Arrays पर Advantage रखते हैं। ऐसा इसलिए क्योंकि Array का Size Fixed होता है।C# में Dynamically Arrays Create करने के लिए, ArrayList Collection का उपयोग करें। यह Object के Ordered Collection को Represent करता है जिसे Individually Index किया जा सकता ह

  16. C# में Infinite Loop कैसे Create करें?

    Infinite Loop एक ऐसा Loop है जो कभी Terminate नहीं होता और Indefinitely Repeat होता है।आइए C# में Infinite Loop Create करने का एक Example देखते हैं।Exampleusing System; namespace Demo {    class Program {       static void Main(string[] args) {         &n

  17. C# में Custom Attributes कैसे Create करें?

    Custom Attributes जिनका उपयोग Declarative Information Store करने के लिए किया जा सकता है और Run-time पर Retrieved किया जा सकता है।आइए देखते हैं कि Custom Attribute कैसे Declare करें।[AttributeUsage ( AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Field | AttributeTargets.Met

  18. C# में Jagged Arrays को Initialize कैसे करें?

    Jagged Array, Arrays का Array होता है। इसे Initialize करने का तरीका यह है।int[][] rank = new int[2][]{new int[]{3,2,7},new int[]{9,4,5,6}};निम्न Example दर्शाता है कि C# में Jagged Arrays को कैसे Initialize करें।Exampleusing System; namespace ArrayApplication {    class MyArray {   &n

  19. C# में Nested While Loop कैसे Create करें?

    Nested While Loop के लिए, हमारे पास दो While Loops होते हैं।पहला Loop Condition Check करता है और यदि Condition True है, तो यह Inner Loop यानी Nested Loop पर जाता है।Loop 1while (a < 25) { }Loop 2 (Loop1 के अंदर)while (b < 45){ }Nested While Loop Create करने के लिए, निम्न Sample Code है।Exampleusing

  20. C# में User Defined Exceptions कैसे Create करें?

    किसी भी अन्य Programming Language की तरह, C# में आप आसानी से User-Defined Exception Create कर सकते हैं। User-Defined Exception Classes, Exception Class से Derived होती हैं।नीचे दिए गए Example में, Create किया गया Exception Built-in Exception नहीं है।TempIsZeroExceptionC# में User Defined Exception C

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