Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Intellisense Anyone?


  • Please log in to reply
4 replies to this topic

#1 Zoot

Zoot

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 11 March 2012 - 01:00 PM

Here's a suggestion for Chris, or anyone else that would like to take a shot at it. Even me. I've noticed when using the Secret Labs SDK functions, that a description of the function and its' parameters doesn't show up in Intellisense. You get the name and arguments, but no small description, like "Writes byte to serial port" or "Toggles specified pin true or false." Chris, maybe you could add this to the next release of the SDK, please? If you and your staff don't have the time, maybe we can make this a community effort, though it would be better if SL did it due to familiarity with the code. It's only XML commentary in the source code, after all. Thoughts?

#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 11 March 2012 - 04:11 PM

I'm also missing this but maybe it has to do with keeping flash requirements to a minimum? In general, I think documentation is poor, but I could be missing something here.

#3 Zoot

Zoot

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 11 March 2012 - 04:22 PM

I'm also missing this but maybe it has to do with keeping flash requirements to a minimum?

In general, I think documentation is poor, but I could be missing something here.

I'll agree that the documentation is poor, but hopefully that will improve.

The Intellisense information doesn't go into flash, I wouldn't think. It's based on sets of XML comments in the raw C# code which are omitted from the code image at compile time, or when the DLL is compiled. We see them, but the Netduino would not.

Here's a partial example from Microsoft's Unity Framework source code. It's just the Intellisense XML and the method signature to illustrate my point:
/// <summary>
        /// Register a type with specific members to be injected.
        /// </summary>
        /// <param name="container">Container to configure.</param>
        /// <param name="t">Type this registration is for.</param>
        /// <param name="injectionMembers">Injection configuration objects.</param>
        /// <returns>The <see cref="UnityContainer"/> object that this method was called on (this in C#, Me in Visual Basic).</returns>
        [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "t")]
        public static IUnityContainer RegisterType(this IUnityContainer container, Type t, params InjectionMember[] injectionMembers)
All of the information on how to use the method is there in the XML comments. When you're editing this code in Visual Studio, that is the info that pops up when you hover over a method name.

#4 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 11 March 2012 - 06:52 PM

I came across this a while back, http://informatix.mi...umentation.aspx Baxter

#5 Zoot

Zoot

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 17 March 2012 - 07:27 PM

I came across this a while back,

http://informatix.mi...umentation.aspx

Baxter

A little outdated, but not by much. I've added it to my toolbox. Thanks for the tip!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.