-----Original Message-----
If you dont have any need for internationalization of your
strings i like using a nested structure of string
constants. Something like the following. Its hard to
read in the post, but just copy / paste it into your code
or notepad to see what i mean.
internal struct Constants
{
internal struct Errors
{
internal const string ErrMsgAddInName
= "CS Dev Tools";
internal const string ErrLoadingAddIn
= "Error loading Add-In: \r\n";
internal const string ErrInCodeFragMgr
= "Error in the code fragmant manager: \r\n";
internal const string ErrInsertCodeFrag
= "Error inserting code fragment into code window: \r\n";
internal const string ErrNoTextSelected
= "No text was selected in code window";
internal const string
ErrCodeFragNameExists = "Code Fragment already has this
name.\r\nPlease choose another name";
}
internal struct UndoContexts
{
internal const string ADD_FRAGMENT
= "AddFragment";
internal const string ADD_CODEREVIEW_ITEM
= "AddCodeReviewItem";
internal const string NEW_PROPERTY
= "NewProperty";
internal const string NEW_MSGBOX
= "NewMsgBox";
internal const string ADD_REGION
= "AddRegion";
internal const string ADD_REGEX
= "AddRegEx";
internal const string ADD_CONSTRING
= "AddConnectionString";
}
internal struct Kinds
{
internal const string vsViewKindCode
= "{7651A701-06E5-11D1-8EBD-00A0C90F26EA}";
internal const string vsCMLanguageVB
= "{B5E9BD33-6D3E-4B5D-925E-8A43B79820B4}";
}
internal struct OutputMsg
{
internal const string Output_Spaces = " ";
internal const string Clean_Name = "-------
--- Cleaning Solution ----------";
internal const string Clean_SavingSolution
= " 1. Saving solution all projects";
internal const string Clean_CloseSolution
= " 2. Closing solution";
internal const string Clean_DeleteFiles
= " 3. Deleting intermediate files and output files
for projects:";
internal const string Clean_ReOpenSolution
= " 4. Re-opening solution";
internal const string Clean_Building
= " 5. Building solution";
internal const string Clean_Finished
= "********** Clean finished **********";
}
}
.