Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:35:40+00:00 2026-05-23T18:35:40+00:00

As the name states, I have no idea how to reference a dictionary indexer.

  • 0

As the name states, I have no idea how to reference a dictionary indexer. Any help here? 🙂

FYI, I’ve tried:

<see cref="Item"/>
<see cref="Item(Int32)"/> //Highly doubted this would work.
<see cref="Item(TKey)"/>
<see cref="Item[TKey]"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:35:41+00:00Added an answer on May 23, 2026 at 6:35 pm

    You can use the full property syntax to reference indexers:

    namespace ConsoleApplication1
    {
        /// <summary>
        /// See indexer <see cref="P:ConsoleApplication1.MyDictionary`2.Item(`0)"/>
        /// </summary>
        /// <typeparam name="TKey"></typeparam>
        /// <typeparam name="TValue"></typeparam>
        public class MyDictionary<TKey, TValue>
        {
            /// <summary>
            /// Indexer
            /// </summary>
            /// <param name="key"></param>
            /// <returns></returns>
            public TValue this[TKey key]
            {
                get { return default(TValue); }
                set { }
            }
        }
    }
    

    You can check that the property was resolved properly by inspecting the generated XML file:

    <doc>
        <assembly>
            <name>ConsoleApplication1</name>
        </assembly>
        <members>
            <member name="T:ConsoleApplication1.MyDictionary`2">
                <summary>
                See <see cref="P:ConsoleApplication1.MyDictionary`2.Item(`0)"/>
                </summary>
                <typeparam name="TKey"></typeparam>
                <typeparam name="TValue"></typeparam>
            </member>
            <member name="P:ConsoleApplication1.MyDictionary`2.Item(`0)">
                <summary>
                Indexer
                </summary>
                <param name="key"></param>
                <returns></returns>
            </member>
        </members>
    </doc>
    

    Notice how the first P: matches the second one.

    Finally, make sure it’s working with Intellisense:

    Intellisense for Indexer


    Update by Original Poster (myermian):

    I did a little bit of digging and have discovered that the shortform of an indexer property is just “this“. Ex: <see cref="this"/>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml file like this: <root> <item> <name>one</name> <status>good</status> </item> <item> <name>two</name>
Does anyone have any idea what is wrong with this create statement for mysql?
Lets say I have a table with columns such as: ID Name City State
I have a record store of items which have (name, quantity, owner, status) Now
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008
In a database prototype, I have a set of fields (like name, description, status)
I have a simple grammar consisting of mixed variables ( $(name) ) and variable-value
I have an sql table with ID(unique) Name status 1 A 0 2 B
I have no idea what the following query means as I do not have
With reference to the below mentioned code block (Designer- .ASPX), I am trying here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.