Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / C#

Improving Code Auto Completion in C#

Rate me:
Please Sign up or sign in to vote.
4.89/5 (31 votes)
16 Sep 2009CPOL7 min read 65.5K   1.3K   92  
An article on improving code completion in C#.
//-------------------------------------------------------------------------------------
// <copyright file="MessagePrompt.cs" company="Jonno">
//     Copyright (c) 2009 Paul Johnson (paulmichael.johnson@gmail.com) 
//     Code is released under The Code Project Open License (CPOL).       
// </copyright>
//-------------------------------------------------------------------------------------

namespace Jonno.Presentation
{
    using System.Windows.Forms;

    /// <summary>
    /// Interface for message box prompts.
    /// This allows message boxes to be injected into views for testing.
    /// </summary>
    /// <returns>The result of the prompt.</returns>
    public interface MessagePrompt
    {
        /// <summary>
        /// Shows a message box prompt ang gets the result.    
        /// </summary>
        DialogResult ShowPrompt(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
I have over 15 years of development experience, in many different languages, programming styles and platforms. Currently working as a C# coder, and residing in north Herts in the UK. I love lean software development and anything that reduces a grind to leave more time for useful coding!

Comments and Discussions