1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anna007 [38]
3 years ago
10

Create a dictionary with types as integer and string.

Computers and Technology
1 answer:
Airida [17]3 years ago
7 0

Answer:

In c#  Dictionary is the collection of keys and value .The dictionary is a generic collection class which is in the System.Collection.Generics namespace. we can represent dictionary like that Dictionary<TKey, TValue> where TKey represent the type of key and TValue is the type of TValue.

Following are the example which represent dictionary as integer and string

using System.Collections.Generic;  // namespace

class Test // class test

{

   static void Main()  // main method

   {

       

       var ob = new Dictionary< int,string>();  // type integer and string

       dictionary.Add( 2,"hello");

       dictionary.Add(143,"hello1);

       // The dictionary has 2 pairs.

       Console.WriteLine("DICTIONARY 1 " + ob.Count);

}

}

Output:

DICTIONARY 1 :2

Explanation:

In this program we create a dictionary generic class which is integer and string type after that we add the elements in the dictionary by   "dictionary.Add method " and finally print the count of dictionary

You might be interested in
Which is an example of synchronous communication? e-mail voicemail text message telephone conversation
professor190 [17]
Telephone conversation is the answer because the data works off the same clock and the data transfer occurs at regular intervals.
3 0
3 years ago
Read 2 more answers
How to paste picture in word without moving table.
gogolik [260]
You should Double Click then hit add
4 0
3 years ago
In the FEMA case study, the BureauNet software was the primary reason behind the increased speed and relevance of the reports FE
lianna [129]

Answer:

True

Explanation:

8 0
3 years ago
Read 2 more answers
To rotate text in a cell, select the _____ option in the alignment grouping.
KiRa [710]

Answer:

rotate text is the correct answer

7 0
3 years ago
________an approach to database and software development that emphasizes "individuals and interactions over processes and tools,
dimulka [17.4K]

Answer:

Agile software development

Explanation:

Agile software development  model is a blend of iterative and steady procedure models with center around process flexibility and consumer loyalty by fast conveyance of working programming item. Nimble Methods break the item into little gradual forms. These assembles are given in emphases.

So in blank space there will be Agile software development

7 0
3 years ago
Other questions:
  • Technician A says that if the coefficient of friction is too low, the brakes will grab.
    12·1 answer
  • What analogy could you use to explain the hardware parts of a computer?
    11·1 answer
  • 5.) Spam messages account for what percentage of all email?
    15·2 answers
  • Files containing ____ are available from a variety of sources.
    10·1 answer
  • What is the purpose of indexing?
    15·2 answers
  • A program virus infect​
    10·1 answer
  • Why do we create user accounts to customize our preferences​
    10·1 answer
  • __________ translates analog voice signals into digital data and uses the Internet to transport the data.
    7·1 answer
  • Write a one register parameter procedure that converts an ASCII digit in AL to its corresponding binary value. If AL already con
    8·1 answer
  • Enter a formula in cell C13 to look up the registration fee for the first vehicle. Use the vehicle type in cell C4 as the Lookup
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!