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

  • Home
  • SEARCH
  • 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 158533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:41:54+00:00 2026-05-11T10:41:54+00:00

<see cref=switch /> , for example, doesn’t work – I get the compilation warning:

  • 0

<see cref='switch' />, for example, doesn’t work – I get the compilation warning: XML comment on ... has syntactically incorrect cref attribute 'switch'


Context for those who are interested…

/// <summary>Provides base functionality for hand-coded abstractions of API method wrappers, mostly those that abstract over /// parameters that are required to be JSON-encoded.</summary> public class FacebookArgs : Dictionary<String, Object> {     /// <summary>Initializes an instance of <see cref='FacebookArgs' />.</summary>     public FacebookArgs() { }      /// <summary>Intializes an instance of <see cref='FacebookArgs' />, that contains elements copied from <paramref name='dictionary '/>.</summary>     /// <param name='dictionary'></param>     public FacebookArgs(IDictionary<String, Object> dictionary)         : base(dictionary) { }      /// <summary>Gets or sets the value associated with the specified key.</summary>     /// <param name='key'>The key of the value to get or set.</param>     /// <returns>The value associated with the specified key.</returns>     /// <remarks>This implementation hides the base indexer implementation such that specifying a key that does not exist returns null rather than throwing a <see cref='KeyNotFoundException' />.</remarks>     public new Object this[String key]     {         get         {             Object value;             if (this.TryGetValue(key, out value)) return value;             else return null;         }         set { base[key] = value; }     }      /// <summary>In derived classes, provides specialized serialization logic for specific properties contained in this object.</summary>     /// <param name='key'>The key of the property to serialize.</param>     /// <param name='args'>A reference to a dictionary of arguments that will be passed directly to a <see cref='FacebookRequest' /> object.</param>     /// <remarks>     /// <para>This method allows specialized serialization logic, such as JSON encoding, to be applied to specific properties.</para>     /// <para>To implement, use a <c>switch</c> (<c>Select</c> in VB.NET) statement to filter based on <paramref name='key' /> and provide the property-specific logic.     /// The resulting value should then be added to <paramref name='args' /> using the same <paramref name='key '/>.     /// </para>     /// <para>Properties that do not require additional processing (strings, integral values, etc) should be ignored.</para>     /// </remarks>     protected virtual void SerializeProperty(String key, ref IDictionary<String, Object> args) { }      /// <summary>Returns a dictionary of key/value pairs suitable to be passed a <see cref='FacebookRequest' /> object.</summary>     /// <returns>A dictionary of key/value pairs suitable to be passed a <see cref='FacebookRequest' /> object.</returns>     /// <remarks>This method calls the <see cref='SerializeProperty' /> for each key in the object, which allows property-specific processing     /// to be done on any property.</remarks>     /// <seealso cref='SerializeProperty' />     public IDictionary<String, Object> GetArgs()     {         IDictionary<String, Object> args = new Dictionary<String, Object>();          foreach (String key in this.Keys)         {             this.SerializeProperty(key, ref args);              if (!args.ContainsKey(key) && this[key] != null)             {                 args.Add(key, this[key]);             }         }          return args;     } } 

The tag in question can be found in the <remarks> tag for SerializeProperty. I’m erring on the side of verbose documentation. I also plan on providing some <example>s, I just haven’t gotten around to it yet.

  • 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. 2026-05-11T10:41:54+00:00Added an answer on May 11, 2026 at 10:41 am

    cref is meant to refer to another member – a class, a method etc.

    What would you expect it to link to in this case? In general, what do you want the overall effect to be?

    According to this excellent XML doc guide, the <see> tag has an undocumented attribute langword:

    <see langword='switch' /> 

    Would that help you? It might be worth trying it just to see what it does.

    If you just want to use a normal hyperlink, use href instead of cref:

    <see href='http://msdn.microsoft.com/en-us/library/06tc147t.aspx'>switch</see> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 141k
  • Answers 141k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This post is a good starting point for you: http://icodeblog.com/2009/07/23/nstimer-the-poor-mans-threading-code-snapshot/ May 12, 2026 at 8:02 am
  • Editorial Team
    Editorial Team added an answer 64 bit refers to the width of registers, memory addressing… May 12, 2026 at 8:02 am
  • Editorial Team
    Editorial Team added an answer In my opinion, CORE means something indispensable. Math functions and… May 12, 2026 at 8:02 am

Related Questions

<see cref=switch /> , for example, doesn't work - I get the compilation warning:
In a webservice I see this code: <WebMethod()> _ Public Function dosomething() As Boolean
Checking the HTML source of a question I see for instance: <a id=comments-link-xxxxx class=comments-link>add
Since String implements IEnumerable<char> , I was expecting to see the Enumerable extension methods
When I emplement IEnumerable<T> interface I see two GetEnumerator methods: one returning IEnumerator and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.